Jump to content

Prescurtarea unei functi


CrystyaN

Recommended Posts

[move]Tutorial

[/move]

Salut, am sa va arat cum sa prescurtati o funcite. Pot sa spun ca e pentru incepatori :)), dar este simplu..

Deci de ex sa zicem ca vrei sa prescurtezi functia " SendClientMessage ", atunci poti sa faci asa..

#define SCM SendClientMessage

SCM- prescurtarea funcitei(pui ce vrei)

SendClientMessage - functia

Asa poti sa faci si la PlayerToPoint..

#define PTP PlayerToPoint

Nu mai trebe sa scri "SendClientMessage" scri doar " SCM(playerid, 0xFFFFFF, "xxx"); "

Sau

if(PlayerToPoint(30.0, playerid,x,y,z)) ==> if(PTP(30.0,playerid, x,y,z))

Asa poti sa faci la mai multe functi..

Sper sa va ajute...

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.