Warning 202! - 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)
+--- Thread: Warning 202! (
/showthread.php?tid=553865)
Warning 202! -
Xenforox - 31.12.2014
I got this warning!
PHP код:
warning 202: number of arguments does not match definition
This is the line
PHP код:
format(string, sizeof(string), "You have set %s's materials to %i.", GetPlayerName(id), Value);
Help please!
Re: Warning 202! -
jackx3rx - 31.12.2014
Your GetPlayerName is the issue, you can't use it like that so try this:
pawn Код:
new playername[MAX_PLAYER_NAME];
GetPlayerName(id, playername, sizeof(playername));
format(string, sizeof(string), "You have set %s's materials to %i.", playername, Value);
Enjoy!