13.01.2013, 20:24
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!"); }