Raised This Month: $ Target: $400
 0% 

PlayTime


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-17-2011 , 14:22   Re: PlayTime
Reply With Quote #10

Quote:
Originally Posted by Xalus View Post
For somereason this doesn't work..

PHP Code:
new const g_iBanTime[8] = {
    
300,
    
3600,
    
360,
    
1440,
    
360,
    
604800,
    
604800,
    
0
};

new 
SecsMinsHours;

Secs g_iBanTime[i];

convert_secondsSecsMinsHours );
formatex(szTimecharsmax(szTime), "\d(%ih %imins %is)"HoursMinsSecs);

stock convert_seconds( &seconds, &minutes, &hours ) {
    
hours seconds 3600
    minutes 
= (hours 3600) / 60
    seconds 
%= 60

That's because you didn't do what I showed. The hours variable should never be used, only assigned. See my example again.

Quote:
Originally Posted by SpeeDeeR View Post
There is already a native for that ? Inspect time.inc
1. There are not natives in time.inc
2. The stock converts to a string.
__________________
fysiks 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 01:09.


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