Raised This Month: $ Target: $400
 0% 

get user playtime


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
reinert
Veteran Member
Join Date: Feb 2007
Old 04-23-2011 , 07:21   get user playtime
Reply With Quote #1

So I've searched forum and found a method that gets users playtime. But I'm doubting is it correct, because I would like to save time in seconds.

here is method:

PHP Code:
new iPlayedTime[33]; // creating new array

iPlayedTime[id]        = SQL_ReadResult(Query8); // getting the last spent time on server from mysql.

get_user_playtimeid )
{
    return 
iPlayedTime[id] + get_user_time(id)
// so thats the method. 
Does this return me users spent time on server in seconds ?

One guy connected to my server for few seconds, but I found in my phpmyadmin that he was in server for 750seconds.
reinert is offline
 


Thread Tools
Display Modes

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 19:47.


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