Need help with time system
#1

Code:
	seconds += 1;
	if(seconds == 60)
	{
	  minutes++;
	  seconds = 0;
	}
	if(minutes == 24)
	{
	  minutes = 0;
	}
	SetWorldTime(minutes);
	new string[128];
	if(seconds < 10)
	{
	format(string,sizeof(string),"%i:0%i",minutes,seconds);
	TextDrawSetString(Textdraw1,string);
	}
	else
	{
	format(string,sizeof(string),"%i:%i",minutes,seconds);
	TextDrawSetString(Textdraw1,string);
	}
	return 1;
What is the problem with this code? It always speeds up too fast im using the timer set to 1000 miliseconds (1 second) and it does repeat

Help please.
Reply


Messages In This Thread
Need help with time system - by coole210 - 17.05.2010, 21:06
Re: Need help with time system - by Backwardsman97 - 17.05.2010, 22:14
Re: Need help with time system - by coole210 - 18.05.2010, 02:09
Re: Need help with time system - by Backwardsman97 - 18.05.2010, 02:47
Re: Need help with time system - by coole210 - 19.05.2010, 01:25
Re: Need help with time system - by coole210 - 19.05.2010, 13:27
Re: Need help with time system - by Joe_ - 19.05.2010, 14:24

Forum Jump:


Users browsing this thread: 1 Guest(s)