Set timer is not working
#4

This is what you are suppose to do:
pawn Код:
forward delay(playerid);
if (!strcmp("/fixveh", cmdtext, true))
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new VehicleID = GetPlayerVehicleID(playerid);
        RepairVehicle(VehicleID);

        /////  SHOW  /////
        TextDrawShowForPlayer(playerid,Text:Textdraw14);
        TextDrawShowForPlayer(playerid,Text:Textdraw15);

        SetTimerEx("delay",4000,false,"i",playerid); // delay is just a "dummy" function that returns 1
        return 1;
    }
    else
    {
        return 1;
    }
    return 1;
}

public delay(playerid)
{
    /////  HIDE  /////
    TextDrawHideForPlayer(playerid,Text:Textdraw14);
    TextDrawHideForPlayer(playerid,Text:Textdraw15);
    return 1;
}
Reply


Messages In This Thread
Set timer is not working - by LeetModz - 03.05.2012, 18:30
Re: Set timer is not working - by FalconX - 03.05.2012, 18:33
Re: Set timer is not working - by PrawkC - 03.05.2012, 18:38
Re: Set timer is not working - by Mento - 03.05.2012, 18:44
Re: Set timer is not working - by LeetModz - 03.05.2012, 19:27
Re: Set timer is not working - by Mento - 03.05.2012, 19:31
Re: Set timer is not working - by 2KY - 03.05.2012, 19:53

Forum Jump:


Users browsing this thread: 1 Guest(s)