Timer Not working.
#2

Try this:

pawn Код:
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
    new string[100];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    GetPlayerPos(playerid, x, y, z);
    format(string, sizeof(string), "~g~Admin ~w~%s started a war ~n~ You will be teleported in ~r~10 seconds!. ", name);
    GameTextForAll(string, 5000, 5 );

    SetTimerEx("Teleport",10000,false,"d",playerid);
    print(string);
    return 1;
}

forward Teleport(playerid);
public Teleport(playerid)
{
    new Float:x, Float:y, Float:z;
    SetPlayerPos(playerid, x, y, z);
    return 1;
}
Reply


Messages In This Thread
Timer Not working. - by Alex_Obando - 13.08.2011, 02:32
Re: Timer Not working. - by grand.Theft.Otto - 13.08.2011, 02:39
Respuesta: Timer Not working. - by Alex_Obando - 13.08.2011, 02:44
Re: Timer Not working. - by Scenario - 13.08.2011, 02:51
Re: Timer Not working. - by [L3th4l] - 13.08.2011, 03:08
Re: Timer Not working. - by Scenario - 13.08.2011, 03:15

Forum Jump:


Users browsing this thread: 1 Guest(s)