Raised This Month: $ Target: $400
 0% 

get user playtime


Post New Thread Reply   
 
Thread Tools Display Modes
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
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 04-23-2011 , 07:51   Re: get user playtime
Reply With Quote #2

Please Show us the plugin you use...
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))
ProIcons is offline
reinert
Veteran Member
Join Date: Feb 2007
Old 04-23-2011 , 08:10   Re: get user playtime
Reply With Quote #3

Well it's private, it has over thousand of lines, I posted everything what is common with playtime. It's all... Nothing useful more ;(
reinert is offline
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 04-23-2011 , 08:23   Re: get user playtime
Reply With Quote #4

And how you want us to know where is the problem by showing to us 5 lines?

if we don't see how the code works...
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))
ProIcons is offline
reinert
Veteran Member
Join Date: Feb 2007
Old 04-23-2011 , 08:25   Re: get user playtime
Reply With Quote #5

Well the whole plugin has nothing to do with user playtime.

And what you mean by saying ( if we don't see how the code works... ) ? I gave all the code that I'm using to get users play time.

clear ?
reinert is offline
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 04-23-2011 , 08:42   Re: get user playtime
Reply With Quote #6

no clear

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

There is a code that saving playtime in the MySQL. AND a code that is calculating the time that a USER has stayed on your server. if we don't see what it is saving in the mYSQL how will be able to HELP YOU?
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))
ProIcons is offline
reinert
Veteran Member
Join Date: Feb 2007
Old 04-23-2011 , 08:46   Re: get user playtime
Reply With Quote #7

I'm saving over 10 items in my mysql, everything works, i'm saving it as get_user_playtime(id). Well I think I've fixed it. The problem was in get_user_time.
reinert is offline
Reply



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