Warning 202!
#1

I got this warning!
PHP код:
 warning 202number of arguments does not match definition 
This is the line
PHP код:
 format(stringsizeof(string), "You have set %s's materials to %i."GetPlayerName(id), Value); 
Help please!
Reply
#2

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!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)