Undefined symbol (playerid) - 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: Undefined symbol (playerid) (
/showthread.php?tid=596130)
Undefined symbol (playerid) -
Sebz - 12.12.2015
forward SendTesterMessage(color, string[]);
public SendTesterMessage(color, string[])
{
foreach(Player, i)
{
if(pInfo[playerid][Testerlevel] >= 1)
{
SendClientMessage(i, color, string);
}
}
}
It's probably easy to fix this problem, but I'm not sure how to do it. I use a y_ini user system and I want to check if the player is a tester before sending them a message. Thanks ahead of time, will rep 4 fix.
Re: Undefined symbol (playerid) -
AlexuTzVs - 12.12.2015
Try for(new i=0; i<MAX_PLAYERS; i++) and replace playerid with i
Re: Undefined symbol (playerid) -
Jefff - 12.12.2015
" playerid " to " i " from foreach pal
Re: Undefined symbol (playerid) -
Sebz - 12.12.2015
Thank you both.