undefined symbol "i" -
kleantzhubi - 27.08.2015
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"
Re: undefined symbol "i" -
SKAzini - 27.08.2015
Post line 12 to 66 of OnTimers.pwn.
Re: undefined symbol "i" -
kleantzhubi - 27.08.2015
Код:
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);
Re: undefined symbol "i" -
Gazzy - 27.08.2015
Try playerid instead of "i"?
Re: undefined symbol "i" -
kleantzhubi - 27.08.2015
@Gazzy,error 017: undefined symbol "playerid" lol
Re: undefined symbol "i" -
Vince - 27.08.2015
Foreach syntax is: