error 017 - foreach? help-me. - 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: error 017 - foreach? help-me. (
/showthread.php?tid=651338)
error 017 - foreach? help-me. -
iTakelot - 18.03.2018
Pesso a ajuda de vocкs para com esse erro que nгo consigo resolver.
Код:
zombies.pwn(180) : error 017: undefined symbol "Itter_Add"
zombies.pwn(185) : error 017: undefined symbol "Itter_Add"
zombies.pwn(196) : error 017: undefined symbol "Itter_Add"
zombies.pwn(779) : warning 203: symbol is never used: "Itter_Create"
PHP код:
Itter_Create (Vehicle, MAX_VEHICLES);//line of erro (27)
CODE:
PHP код:
public OnFilterScriptInit()
{
for(new i =0; i<= MAX_PLAYERS;i++){
if(IsPlayerConnected(i) && !IsPlayerNPC(i)){
Itter_Add(Player,i); //line of erro (179)
AtirandoTimer[i] = SetTimerEx("Atirando",250,1,"i",i);
ZombieKill[i] = -1;
}
else if(IsPlayerConnected(i) && IsPlayerNPC(i)){
Itter_Add(Bot,i);//line of erro (184)
if(!strfind(PlayerName(i),ZOMBIE_NAME,true)){
SetupZombie(i);
}
}
}
new Float:h;
for(new v=0;v<MAX_VEHICLES;v++){
GetVehicleHealth(v,h);
if(h)Itter_Add(Vehicle,v);//line of erro (194)
}
return 1;
}
Re: error 017 - foreach? help-me. -
Dayrion - 18.03.2018
That's "Iter" not "Itter"
Re: error 017 - foreach? help-me. -
iTakelot - 18.03.2018
Quote:
Originally Posted by Dayrion
That's "Iter" not "Itter"
|
NICE YOU'RE GOOD , AND IT?
Код:
error 010: invalid function or declaration
PHP код:
Iter_Create (Vehicle, MAX_VEHICLES);//line of erro (27)
Re: error 017 - foreach? help-me. -
Dayrion - 18.03.2018
Iter_Add not Iter_Create