Why my timer dont start?!
#1

Up:

Код:
new timer1;
new timer2;
new dis[MAX_PLAYERS];
forward htimer(playerid);
Forward

Код:
public htimer(playerid)
{
dona[playerid] = 0;
SendClientMessage(playerid, COLOR_RED, "[QUESTION] "green"You can "white"ask/answer "green"a question again! "grey"/h [TEXT]");
return 1;
}
cmd

Код:
timer2 = SetTimer("htimer", 50000, false);
new pname[24];
new string[128];
dis[playerid] = 1;
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "[QUESTION] "yellow"- %s asks: "green"%s - "grey"[/A(nswer) (/h [TEXT])", pname,params);
SendClientMessageToAll(COLOR_RED, string);
		
		SendClientMessage(playerid, COLOR_RED, "[QUESTION] "green"You can "white"ask "green"a question again over 50 seconds!");
		return 1;
everything works exept the timer
yea the command is fine to, only copied a bit of the cody, not the zcmd part etc

how to let it work?
Reply
#2

new timer2[MAX_PLAYERS];

timer2[playerid] = SetTimerEx("htimer", 50000, false,"i",playerid);
Reply
#3

Try change false for true
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)