Raised This Month: $ Target: $400
 0% 

About get_systime


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Bladell
Senior Member
Join Date: Jun 2012
Old 08-27-2013 , 08:57   About get_systime
Reply With Quote #1

How it is work?
What really do this native?Here : http://www.amxmodx.org/funcwiki.php?...time&go=search , I saw that count the seconds from 1 January 1970...Then this expression it's wrong for me:
Code:
nvault_prune(gVaultHandle, 0, get_systime() - (xpSaveDays * 24 * 3600))
If you make the difference betwen seconds elapsed since 1970 and a week (for example), you will get a result wich is in past, not in future.So...how this native work?
I think that the correct expression is
Code:
nvault_prune(gVaultHandle, 0, get_systime() + (xpSaveDays * 24 * 3600))
This is a line from SuperHero Mod...what I am trying to do is a message wich will be shown in the last X days before reset of experience.The problem is that I can't understand how work get_systime native...
Bladell is offline
 



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

Forum Jump


All times are GMT -4. The time now is 18:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode