undefined symbol "i"
#1

Hello,Im new in scripting and i dont know how to fix this error.
Who can help me ill give Reputation to him.
\gamemodes\OnTimers.pwn(12) : error 017: undefined symbol "i"
\gamemodes\OnTimers.pwn(14) : error 017: undefined symbol "i"
\gamemodes\OnTimers.pwn(16) : error 017: undefined symbol "i"
\gamemodes\OnTimers.pwn(17) : error 017: undefined symbol "i"
\gamemodes\OnTimers.pwn(1 : error 017: undefined symbol "i"
\gamemodes\OnTimers.pwn(19) : error 017: undefined symbol "i"
\gamemodes\OnTimers.pwn(20) : error 017: undefined symbol "i"
\gamemodes\OnTimers.pwn(22) : error 017: undefined symbol "i"
\gamemodes\OnTimers.pwn(24) : error 017: undefined symbol "i"
\gamemodes\OnTimers.pwn(25) : error 017: undefined symbol "i"
\gamemodes\OnTimers.pwn(26) : error 017: undefined symbol "i"
\gamemodes\OnTimers.pwn(44) : error 017: undefined symbol "i"
\gamemodes\OnTimers.pwn(4 : error 017: undefined symbol "i"
\gamemodes\OnTimers.pwn(49) : error 017: undefined symbol "i"
\gamemodes\OnTimers.pwn(51) : error 017: undefined symbol "i"
\gamemodes\OnTimers.pwn(52) : error 017: undefined symbol "i"
\gamemodes\OnTimers.pwn(55) : error 017: undefined symbol "i"
\gamemodes\OnTimers.pwn(57) : error 017: undefined symbol "i"
\gamemodes\OnTimers.pwn(5 : error 017: undefined symbol "i"
\gamemodes\OnTimers.pwn(62) : error 017: undefined symbol "i"
\gamemodes\OnTimers.pwn(66) : error 017: undefined symbol "i"
Reply
#2

Post line 12 to 66 of OnTimers.pwn.
Reply
#3

Код:
if(GetPVarInt(i, "PlayerLogged") == 1 && GetPVarInt(i, "Admin") < 1)
		{
			if(GetPVarInt(i, "JailTime") == 0 && GetPlayerInterior(i) == 0)
			{
				GetPlayerPos(i, x, y, z);
				SetPVarFloat(i, "PlayerPos0", x);
				SetPVarFloat(i, "PlayerPos1", y);
				SetPVarFloat(i, "PlayerPos2", z);
				if(GetPVarFloat(i, "PlayerPos0") == GetPVarFloat(i, "PlayerPos3") && GetPVarFloat(i, "PlayerPos1") == GetPVarFloat(i, "PlayerPos4") && GetPVarFloat(i, "PlayerPos2") == GetPVarFloat(i, "PlayerPos5") && GetPVarInt(i, "PayDay") >= 1)
				{
				    DeletePVar(i, "PayDay");
				}
				SetPVarFloat(i, "PlayerPos3", GetPVarFloat(i, "PlayerPos0"));
				SetPVarFloat(i, "PlayerPos4", GetPVarFloat(i, "PlayerPos1"));
				SetPVarFloat(i, "PlayerPos5", GetPVarFloat(i, "PlayerPos2"));
			}
		}
	}
	return 1;
}
//============================================//
public OneSecondTimer()
{
	new string[128],sendername[MAX_PLAYER_NAME],Float:health,tmphour,tmpminute,tmpsecond,Float:x,Float:y,Float:z;
	if(CountDown > 0)
	{
	    CountDown--;
	    format(string, sizeof(string),"~b~%d",CountDown);
	    GameTextForAll(string, 3000, 5);
	}
    foreach (Player,i)
	{
		switch(GetPVarInt(i, "PlayerLogged"))
		{
		    case 0:
		    {
		        SetPVarInt(i, "LoginTime", GetPVarInt(i, "LoginTime")+1);
		        if(GetPVarInt(i, "LoginTime") == 300)
		        {
		            SendClientMessage(i,COLOR_LIGHTRED,"You have been kicked for not logging in over (5) minutes.");
				    KickEx(i);
				    return true;
		        }
				if(GetPVarInt(i, "CameraDelay") != 0)
				{
				    SetPVarInt(i, "CameraDelay", GetPVarInt(i, "CameraDelay")-1);
                    switch(GetPVarInt(i, "CameraDelay"))
				    {
				        case 0:
				        {
		                    switch(GetPVarInt(i, "CameraPos"))
		                    {
		                        case 1:
		                        {
		                            SetPVarInt(i, "CameraPos", GetPVarInt(i, "CameraPos")+1);
Reply
#4

Try playerid instead of "i"?
Reply
#5

@Gazzy,error 017: undefined symbol "playerid" lol
Reply
#6

Foreach syntax is:
pawn Код:
foreach(new i : Player)
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)