SA-MP Forums Archive
warning 202: number of arguments does not match definition - 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: number of arguments does not match definition (/showthread.php?tid=640396)



warning 202: number of arguments does not match definition - xXGabyGabiXx - 02.09.2017

GetPlayerName(id, giveplayer, sizeof(giveplayer));
GetPlayerPos(id, slx, sly, slz);
SetPlayerPos(id, slx, sly, slz+5);
format(string, sizeof(string), "[AdmCmd]: %s was slaped by Server BOT, reason: Possible speed hack", sendername);
ABroadCast(COLOR_RED2, string);
}


LINIE: ABroadCast(COLOR_RED2, string);

WARNING: warning 202: number of arguments does not match definition


Re: warning 202: number of arguments does not match definition - Zeth - 02.09.2017

show the stock for ABroadCast.
As i know in GF, you should specify the admin level to show the messages to the admins who are equal to or greater than that level like :

Код:
ABroadCast(COLOR_RED2, string, 1);//here 1 is the admin level