Undefined symbol (playerid)
#1

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.
Reply
#2

Try for(new i=0; i<MAX_PLAYERS; i++) and replace playerid with i
Reply
#3

" playerid " to " i " from foreach pal
Reply
#4

Thank you both.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)