[AJUDA]GL_Realtime
#2

Troque toda esta public:

PHP код:
public UpdateTime() 
Por esta:

PHP код:
public UpdateTime()
{
    
gettime(hourminute);
    
format(timestr,32,"%02d:%02d",hour,minute);
    
TextDrawSetString(txtTimeDisp,timestr);
    if(
hour == 18 || hour == 19)
    {
        
SetWorldTime(20);
        return 
1;
    }
    
SetWorldTime(hour);
    new 
x=0;
    while(
x!=MAX_PLAYERS) {
        if(
IsPlayerConnected(x) && GetPlayerState(x) != PLAYER_STATE_NONE) {
            
SetPlayerTime(x,hour,minute);
         }
         
x++;
    }

Reply


Messages In This Thread
[AJUDA]GL_Realtime - by Keiichi - 03.06.2011, 18:31
Re: [AJUDA]GL_Realtime - by Shadoww5 - 03.06.2011, 22:24

Forum Jump:


Users browsing this thread: 1 Guest(s)