SA-MP Forums Archive
Question ! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Question ! (/showthread.php?tid=594573)



Question ! - Ugaustin - 20.11.2015

hi, I have gettime(hour,minute,seconds);


if(hour >= 00 or
if(hour >= 24
if(hour >= 0

can please someone tell me?correct one!


Re: Question ! - JaKe Elite - 20.11.2015

I don't know what you are talking about, however if you are asking what is the military time of 12am, then yep, it's 0.


Re: Question ! - Vince - 20.11.2015

None of these make sense. Hour is ALWAYS greater than or equal to 0 and NEVER greater than or equal to 24.


Re: Question ! - N0FeaR - 20.11.2015

https://sampwiki.blast.hk/wiki/Gettime


Re: Question ! - AbyssMorgan - 20.11.2015

PHP код:
new hour,minute,seconds
gettime
(hour,minute,seconds); 
if(
hour >= && hour <= 15){
    
//05:00:00 - 15:59:59
}
if((
hour >= && hour <= 6) || (hour >= 17 && hour <= 24)){
    
//17:00:00 - 06:59:59