28.08.2009, 05:57
pawn Код:
#define FORUM "lsrp.smfnew.com"
pawn Код:
SendClientMessage(playerid, COLOR_WHITE, "Foorum: %s",FORUM);
Код:
warning 202: number of arguments does not match definition
#define FORUM "lsrp.smfnew.com"
SendClientMessage(playerid, COLOR_WHITE, "Foorum: %s",FORUM);
warning 202: number of arguments does not match definition
new string[30];
format(string, sizeof(string),"Forum: %s", FORUM);
SendClientMessage(playerid, COLOR_WHITE, string);
new FALSE = false; #define SendFormattedMessage(%0,%1,%2) do{new _str[128]; format(_str,128,%2); SendClientMessage(%0,%1,_str);}while(FALSE)
#define FORUM "lsrp.smfnew.com" SendFormattedMessage(playerid,COLOR_WHITE"Forum: %s", FORUM);
Originally Posted by kevin974
You cannot use define's in ClientMessage try this.
|
// you don't need to use format() because FORUM is constant
SendClientMessage(playerid, COLOR_WHITE, "Forum: " FORUM);