SA-MP Forums Archive
Help with a warning? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with a warning? (/showthread.php?tid=101153)



Help with a warning? - Devine - 08.10.2009

The warning is; warning 202: number of arguments does not match definition

And that line is; SendClientMessage(playerid, COLOR_WHITE, "Your new mask ID: %d", randmask);


Re: Help with a warning? - Nero_3D - 08.10.2009

wiki/SendClientMessages

pawn Код:
new string[25];
format(string, sizeof string, "Your new mask ID: %d", randmask);
SendClientMessage(playerid, COLOR_WHITE, string);



Re: Help with a warning? - MenaceX^ - 08.10.2009

Quote:
Originally Posted by ♣ ⓐⓢⓢ
wiki/SendClientMessages

pawn Код:
new string[25];
format(string, sizeof string, "Your new mask ID: %d", randmask);
SendClientMessage(playerid, COLOR_WHITE, string);
WIKI isn't working for several days already.


Re: Help with a warning? - Devine - 08.10.2009

Alright thanks. I already defined randmask and maskID and everything, but when I try to change;
format(string, sizeof(string), "Stranger says: %s", text);
to
format(string, sizeof(string), "Mask_%s: %s",randmask, text);
it says that randmask isn't define.. can someone help?