SA-MP Forums Archive
error 017: undefined symbol "i" - 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: undefined symbol "i" (/showthread.php?tid=450508)



error 017: undefined symbol "i" - TomRedlake - 13.07.2013

pawn Код:
error 017: undefined symbol "i"
Here is line:
pawn Код:
function ShowCheckpoint()
{
    CreateEvacMaps();
    MoveObject(gateobj,Map[GateX],Map[GateY],Map[MoveGate],3.0);
    foreach(Player,i) SetPlayerCheckpoint(i,Map[CPx],Map[CPy],Map[CPz],6.0);
    if(team[i] == TEAM_ZOMBIE)//<--- this
    {
    GameTextForPlayer(i,"~y~Evacuation Point Opened~n~~r~STOP HUMANS!!",4000,3);//<---this
    }
    if(team[i] == TEAM_HUMAN)//<--- this
    {
    GameTextForPlayer(i,"~y~Evacuation Point Opened~n~~r~ESCAPE!!",4000,3);//<--- this
    }
    SetTimer("EndMap",MAX_END_TIME,false);
    return 1;
}



Re: error 017: undefined symbol "i" - IstuntmanI - 13.07.2013

Change
pawn Код:
function ShowCheckpoint()
{
    CreateEvacMaps();
    MoveObject(gateobj,Map[GateX],Map[GateY],Map[MoveGate],3.0);
    foreach(Player,i) SetPlayerCheckpoint(i,Map[CPx],Map[CPy],Map[CPz],6.0);
    if(team[i] == TEAM_ZOMBIE)//<--- this
    {
    GameTextForPlayer(i,"~y~Evacuation Point Opened~n~~r~STOP HUMANS!!",4000,3);//<---this
    }
    if(team[i] == TEAM_HUMAN)//<--- this
    {
    GameTextForPlayer(i,"~y~Evacuation Point Opened~n~~r~ESCAPE!!",4000,3);//<--- this
    }
    SetTimer("EndMap",MAX_END_TIME,false);
    return 1;
}
to
pawn Код:
function ShowCheckpoint()
{
    CreateEvacMaps();
    MoveObject(gateobj,Map[GateX],Map[GateY],Map[MoveGate],3.0);
    foreach(Player,i)
    {
    SetPlayerCheckpoint(i,Map[CPx],Map[CPy],Map[CPz],6.0);
    if(team[i] == TEAM_ZOMBIE)//<--- this
    {
    GameTextForPlayer(i,"~y~Evacuation Point Opened~n~~r~STOP HUMANS!!",4000,3);//<---this
    }
    if(team[i] == TEAM_HUMAN)//<--- this
    {
    GameTextForPlayer(i,"~y~Evacuation Point Opened~n~~r~ESCAPE!!",4000,3);//<--- this
    }
    }
    SetTimer("EndMap",MAX_END_TIME,false);
    return 1;
}



Respuesta: error 017: undefined symbol "i" - PHudson - 13.07.2013

Edit
I didnt read the previous reply


Re: error 017: undefined symbol "i" - TomRedlake - 13.07.2013

i got many errors now -.-


Re: error 017: undefined symbol "i" - TomRedlake - 13.07.2013

EDIT: works now thank you