PlayTime Display
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:
|
Re: PlayTime Display
Code:
public displaytime(id)Also: You used %s for the integers, while it should've been %i. %s = string %i = integer %f = float See more here:http://www.cplusplus.com/reference/c...cstdio/printf/ |
Re: PlayTime Display
Thanks found my mistake
My Code works now PHP Code:
|
Re: PlayTime Display
Here is a much simpler conversion from seconds to hours minutes seconds:
PHP Code:
PHP Code:
|
| All times are GMT -4. The time now is 10:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.