Timer bug?
#1

Hey, this is my timer:

pawn Код:
SetTimer("TruckerDeliver", 30000, 0);
I want it so that when the player enters the checkpoint it starts it so I did this:

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
        SetTimer("TruckerDeliver", 30000, 0);
    return 1;
}
The problem is once one person enters the checkpoint the timer starts for everyone? I only want it to start for that on player who entered the checkpoint help?
Reply
#2

For that, you`ll have to use SetTimerEx, like:
pawn Код:
SetTimerEx( "TruckerDeliver", 1000, false, "i", playerid );
And for the TruckerDeliver function, use:
pawn Код:
forward TruckerDeliver(playerid);
public TruckerDeliver(playerid)
{
 //bla bla
}
Reply
#3

Thanks so much
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)