Undefined Symbol ( playerid )
#1

I am getting this error message ==> Undefined symbol playerid 2 times

This is my script :

Код:
public RobbingStores()
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerSpawned(i))
		{   //Drugs
			if(RobDrugs[i] > 1)
			{
				if (GetPlayerColor(playerid) == COLOR_WHITE || GetPlayerColor(playerid) == COLOR_PINK)
				{
					new string[250], robber[MAX_PLAYER_NAME], robtime;
					GetPlayerName(i, robber, sizeof(robber));
					RobDrugs[i]--;
					robtime = (RobDrugs[i]);
					format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime);
					GameTextForPlayer(i, string, 3000, 3);
				}
				else SendClientMessage(playerid,COLOR_ERROR,"You cannot rob !! ");
			}
Reply


Messages In This Thread
Undefined Symbol ( playerid ) - by MichaelProPlayer - 08.05.2012, 13:25
Re: Undefined Symbol ( playerid ) - by Scripter12345 - 08.05.2012, 13:27
Re: Undefined Symbol ( playerid ) - by TzAkS. - 08.05.2012, 13:27
Re: Undefined Symbol ( playerid ) - by MichaelProPlayer - 08.05.2012, 13:30
Re: Undefined Symbol ( playerid ) - by TzAkS. - 08.05.2012, 13:33
Re: Undefined Symbol ( playerid ) - by MichaelProPlayer - 08.05.2012, 13:36
Re: Undefined Symbol ( playerid ) - by MP2 - 08.05.2012, 13:41
MP2 - by MichaelProPlayer - 08.05.2012, 13:49

Forum Jump:


Users browsing this thread: 1 Guest(s)