error 017: undefined symbol "i"
#1

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;
}
Reply
#2

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;
}
Reply
#3

Edit
I didnt read the previous reply
Reply
#4

i got many errors now -.-
Reply
#5

EDIT: works now thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)