Timer help
#4

Quote:
Originally Posted by notime
Посмотреть сообщение
Make 1 callback.

Код:
Public Count(playerid, seconds)
{
	String = seconds;
	GameTextForPlayer("blabla, string");
	seconds = seconds-1;
	If seconds > 0 Then
	{
		SetTimerEx("Count",1000,True, "ii", playerid, seconds);
	}
	Return 1;
}
I just made this real quick and I know its not complete.

I hope you understand what I mean with this and please dont copy and paste this onto your script because it wont work. But learn to script practically.
You dont need a "count" for every second, you can use SetTimerEx and take the seconds variable into the callback.

https://sampwiki.blast.hk/wiki/SetTimerEx
thats not the helping,i know how to set timer but tell me how to set timer for the entered time.
Reply


Messages In This Thread
Timer help - by Mouiz - 09.07.2015, 11:25
Re: Timer help - by Mouiz - 09.07.2015, 11:35
Re: Timer help - by notime - 09.07.2015, 11:49
Re: Timer help - by Mouiz - 09.07.2015, 11:55
Re: Timer help - by notime - 09.07.2015, 12:16
Re: Timer help - by Mouiz - 09.07.2015, 12:24
Re: Timer help - by notime - 09.07.2015, 12:26
Re: Timer help - by kyriakos587 - 09.07.2015, 12:42
Re: Timer help - by Mouiz - 09.07.2015, 12:52

Forum Jump:


Users browsing this thread: 1 Guest(s)