Question !
#1

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


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

can please someone tell me?correct one!
Reply
#2

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.
Reply
#3

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

https://sampwiki.blast.hk/wiki/Gettime
Reply
#5

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

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)