Raised This Month: $ Target: $400
 0% 

PlayTime Display


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Stylaa
Senior Member
Join Date: Oct 2009
Location: Flensburg, Germany
Old 10-11-2010 , 19:46   PlayTime Display
Reply With Quote #1

So i store the Secounds a User was on my Server in a mysql datebase

and if he writes

/playtime

it should display

You already spend 1 Hour 1 Minute and 1 Secound on this Server!

if have a code like this but it doesnt work
( secounds[id] = Secounds the User was on my Server from mysql db )

PHP Code:

public displaytime(id)
{

    new 
hours alltimesecs 3600
        
    
new tmp hours 3600
    
new mins alltimesecs tmp 60
        
    
new tmp2 mins 60
    
new secs alltimesecs tmp tmp2
        
    ColorChat
(idRED"%s Du warst bereits %s Stunden %s Minuten und %s Sekunden auf unserem Server",PREFIXhoursminssecs)


__________________

Some People brings Happynes by Coming
Some by Going
Stylaa is offline
Send a message via ICQ to Stylaa
 



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 10:18.


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