clock
#9

let me explain,

time going like this > 2:01 >2:02 >2:03 > 2:04 >2:05 > 2:06 > 2:07 >2:9 > 2:10 > 2:11 >2:12 > 2:13 > 2:14 >2:15 > 2:16 > 2:17 >2:18 > 2:20 > 2:21 >2:22 >

note it on 2:9 they ignore 2:08 and 2:19 this is example but they are ignoring 1 number alwayz in count.

and i don't understand you're code like this?

PHP код:
public RealHourUpdate()
{
    
m++;
    
%= 60;
    
= (sc 60) % 24;
    new 
hmsc;
    
gettime(hmsc);
    if(
WorldTime != h)
    {
        
WorldTime h;
        
SetWorldTime(WorldTime);
    }

    if(
== && == && == sc) ++T_DAY %= 7;

    new 
string[16];
    switch(
T_DAY) {
        case 
0strcat(string"Monday");
        case 
1strcat(string"Tuesday");
        case 
2strcat(string"Wednesday");
        case 
3strcat(string"Thursday");
        case 
4strcat(string"Friday");
        case 
5strcat(string"Saturday");
        case 
6strcat(string"Sunday");
    }
    
TextDrawSetString(DANstring);

    new 
result[40];
    
format(resultsizeof(result), "worldtime %s %02d:%02d",stringmsc);
    
SendRconCommand(result);

    
format(string,sizeof(string),"%02d:%02d"msc);
    
TextDrawSetString(Clockstring);

Reply


Messages In This Thread
clock - by sscarface - 07.02.2013, 17:37
Re: clock - by Scenario - 07.02.2013, 17:41
Re: clock - by sscarface - 07.02.2013, 19:39
Re: clock - by Misiur - 07.02.2013, 20:07
Re: clock - by sscarface - 07.02.2013, 20:17
Re: clock - by Misiur - 07.02.2013, 20:28
Re: clock - by sscarface - 07.02.2013, 20:34
Re: clock - by Misiur - 07.02.2013, 21:05
Re: clock - by sscarface - 07.02.2013, 21:19

Forum Jump:


Users browsing this thread: 5 Guest(s)