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(id, RED, "%s Du warst bereits %s Stunden %s Minuten und %s Sekunden auf unserem Server",PREFIX, hours, mins, secs)
}
__________________