SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 24/03/2016, 08:30 PM   #1
Scrillex
High-roller
 
Scrillex's Avatar
 
Join Date: Jan 2012
Location: In my dreams!
Posts: 1,226
Reputation: 31
Default GETTIME... I need help with it.

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.
__________________
If you need something just ask!

Scrillex is offline   Reply With Quote
Old 24/03/2016, 08:42 PM   #2
Golden96
Little Clucker
 
Golden96's Avatar
 
Join Date: Mar 2016
Posts: 31
Reputation: 0
Default Re: GETTIME... I need help with it.

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 Code:
    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
Golden96 is offline   Reply With Quote
Old 24/03/2016, 08:43 PM   #3
Scrillex
High-roller
 
Scrillex's Avatar
 
Join Date: Jan 2012
Location: In my dreams!
Posts: 1,226
Reputation: 31
Default Re: GETTIME... I need help with it.

Timers ain't a good thing so yeah thats why I'm looking for a possible thought UNIXTIME STAMP OR GETTIME!
__________________
If you need something just ask!

Scrillex is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gettime() DavidBilla Scripting Help 2 03/01/2015 10:40 AM
[Ajuda] gettime() Pitter Português/Portuguese 8 27/12/2014 10:19 PM
[Ajuda] Gettime FabioGTP Português/Portuguese 5 15/10/2014 05:16 AM
GetTime feartonyb Scripting Help 6 17/11/2013 09:45 AM
[Ajuda] GetTime Gleisson_. Português/Portuguese 5 26/04/2013 04:57 PM


All times are GMT. The time now is 11:09 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.