script only works for id 0
#3

Quote:
Originally Posted by leong124
Посмотреть сообщение
How does Deliver(playerid) be called?
By a timer?
If yes, you'll need to use SetTimerEx instead of SetTimer, to pass the variables.
pawn Код:
SetTimerEx("Deliver",60000,false,"d",playerid);
Like this.
Thanks for your fast reply, but it didnt work

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    new playervehicleid = GetPlayerVehicleID(playerid);

    if(ObjectiveReached) return;

    if(playervehicleid == OBJECTIVE_VEHICLE && gTeam[playerid] == TEAM_ATTACKERS)
    {
        SendClientMessageToAll(COLOR_WHITE,"Attackers Win!");
        ObjectiveReached = 1;
        SetTimerEx("Deliver",500,false,"i",playerid);
        }
        return;
    }
Here does it start.
Reply


Messages In This Thread
script only works for id 0 - by geerdinho8 - 07.07.2011, 15:45
Re: script only works for id 0 - by leong124 - 07.07.2011, 15:50
Re: script only works for id 0 - by geerdinho8 - 07.07.2011, 16:03
Re: script only works for id 0 - by alpha500delta - 07.07.2011, 16:16
Re: script only works for id 0 - by geerdinho8 - 07.07.2011, 16:24
Re: script only works for id 0 - by geerdinho8 - 07.07.2011, 17:05
Re: script only works for id 0 - by Hipflop - 07.07.2011, 17:25
Re: script only works for id 0 - by geerdinho8 - 07.07.2011, 18:20
Re: script only works for id 0 - by Hipflop - 07.07.2011, 18:26
Re: script only works for id 0 - by leong124 - 08.07.2011, 05:24

Forum Jump:


Users browsing this thread: 3 Guest(s)