Timer not being called
#5

Quote:
Originally Posted by WagnerPM
Посмотреть сообщение
pawn Код:
CMD:arrest(playerid, params[])
{
    //code here

    jailed[targetid] = 1;
    SetTimerEx("UnJail", 30000, true, "i", targetid);
   
    //more code here
    return 1;
}
Also you gotta change your forward and your function to:

pawn Код:
public UnJail(targetid)
{
        if(jailed[targetid] == 1)
        {
            SetPlayerPos(targetid, 1555.097900, -1675.848754, 16.195312);
            SetPlayerInterior(targetid, 0);
            jailed[targetid] = 0;
        }
        return 1;
}
This will make it so every player has their own jail timer instead of everyone being unjailed at once.
Reply


Messages In This Thread
Timer not being called - by SnG.Scot_MisCuDI - 03.07.2012, 21:07
Re: Timer not being called - by MP2 - 03.07.2012, 21:24
Re: Timer not being called - by SnG.Scot_MisCuDI - 03.07.2012, 21:36
Re: Timer not being called - by WagnerPM - 03.07.2012, 21:36
Re: Timer not being called - by DeathTone - 03.07.2012, 21:43
Re: Timer not being called - by SnG.Scot_MisCuDI - 03.07.2012, 21:48

Forum Jump:


Users browsing this thread: 1 Guest(s)