GETTIME... I need help with it.
#1

So I want to save played time on mysql how it is possible to save it with gettime function.

All I want to do is basically every one h give an respect point and saving current time on playing.


With best regards Scrillex.
Reply
#2

Set up a timer ongamemode init that calls a function to start the hourly timer. You'll need to work out how many minutes are left until the hour ends, so something like (ongamemodeinit
PHP код:
    new hms;
    
gettime(hms);
    
SetTimer("Timer_InitiateHourTimer", (60-m)*600000); 
then have that timer call another timer with the interval of 60,000 ms (1hr) and connect it to a function to give all connected players a respect point
Reply
#3

Timers ain't a good thing so yeah thats why I'm looking for a possible thought UNIXTIME STAMP OR GETTIME!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)