format and #define question
#4

i dont believe you need the return

what you are doing is setting ALTERNATIVE_NAME to basically run the code after it


so later on in your script you would do:

Код:
ALTERNATIVE_NAME
SendClientMessage(playerid, 0x00000000, DIFFERENT_VARIABLE);
your define cannot use itself to replace the code but it can use it

example:
Код:
new string[128];
#define ALTERNATIVE_NAME format(string,sizeof(string), "%s%c", FirstName,"'");
later in script

Код:
ALTERNATIVE_NAME
SendClientMessage(playerid, 0x00000000, string);
Reply


Messages In This Thread
format and #define question - by toby` - 11.03.2010, 20:19
Re: format and #define question - by StreetGT - 11.03.2010, 20:27
Re: format and #define question - by toby` - 11.03.2010, 20:54
Re: format and #define question - by adsy - 11.03.2010, 21:01
Re: format and #define question - by toby` - 12.03.2010, 12:42

Forum Jump:


Users browsing this thread: 1 Guest(s)