Clock issue
#3

Nope. I did that as well, and still the same result...

Код:
public ClockUpdate()
{
	new string[12];

	Second += 1;
	format(string, sizeof(string), "%i:%i:%i", Hour, Minute, Second);
	
	for(new x = 0; x < MAX_PLAYERS; x++)
	{
		if(Logged[x] == 1)
		{
			if(Second == 59)
			{
			    if(Minute == 59)
				{
				    for(new i = 0; i < MAX_PLAYERS; i++)
				    {
				        if(IsPlayerConnected(i))
				        {
							if(Player[i][PaydayTime] >= 30)
							{
	   							SendClientMessage(i, ORANGE, ">> Your pay cheque is ready to be picked up. Please head to the city hall to claim it.");
							    CheckReady[i] = 1;
							}
							else return SendClientMessage(i, LIBLUE, ">> You haven't been playing long enough to get a pay cheque.");
						}
					}
				}
			}
			if(Hour == 23)
			{
			    if(Second == 59)
			    {
			    	Hour = 0;
			    	Minute = 0;
			    	Second = 0;
		    	}
			}
			if(Minute == 59)
			{
			    if(Second == 59)
			    {
			   		Hour ++;
			    	Minute = 0;
			    	Second = 0;
		    	}
    			/*if(Hour == 23)
		    	{
		    		Hour = 0;
			    	Minute = 0;
			    	Second = 0;
				}
				else
				{
    				Hour ++;
					Minute = 0;
					Second = 0;
				}*/
			}
Reply


Messages In This Thread
Clock issue - by HighFlyer - 29.09.2012, 11:19
Re: Clock issue - by Socan - 29.09.2012, 12:16
Re: Clock issue - by HighFlyer - 29.09.2012, 12:21
Re: Clock issue - by Joshman543 - 29.09.2012, 12:28
Re: Clock issue - by Socan - 29.09.2012, 12:29
Re: Clock issue - by HighFlyer - 29.09.2012, 12:33
Re: Clock issue - by Socan - 29.09.2012, 12:36
Re: Clock issue - by iTorran - 29.09.2012, 12:48

Forum Jump:


Users browsing this thread: 1 Guest(s)