Stopping a timer using y_timers.
#1

I can easily start a timer, it works fine, but I can't stop it for some reason?

Код:
COMMAND:timer(playerid, params[])
{
    SendClientMessage(playerid, COLOR_GREEN, "1 Second timer launched!");
    repeat PlayerData(playerid);
    return 1;
}

COMMAND:killtimer(playerid, params[])
{
    SendClientMessage(playerid, COLOR_GREEN, "1 Second timer stopped!");
    new Timer:x = repeat PlayerData(playerid);
    stop x;
    return 1;
}

timer PlayerData[1000](playerid)
{
    SendClientMessage(playerid, COLOR_YELLOW, "ONE SECOND HAS PASSED!");
}
Reply


Messages In This Thread
Stopping a timer using y_timers. - by Shetch - 13.01.2013, 20:24
Re: Stopping a timer using y_timers. - by Scenario - 13.01.2013, 21:29

Forum Jump:


Users browsing this thread: 3 Guest(s)