Raised This Month: $51 Target: $400
 12% 

[ANY] Player Analytics


Post New Thread Reply   
 
Thread Tools Display Modes
PolyQuad
Member
Join Date: Oct 2011
Old 06-29-2015 , 15:59   Re: [ANY] Player Analytics
Reply With Quote #241

I login to phpmyadmin and click create database name it and click ok. Or i login with mysql workbench, create and name database, there is no need to know where the local database file path needs to be placed.

https://www.siteground.com/tutorials...e_database.htm

or if you have a webhost on the box with php you can create a simple php script to run one time to create a database, then delete the php file after it is run.

http://www.w3schools.com/php/php_mysql_create.asp

Last edited by PolyQuad; 06-29-2015 at 20:09.
PolyQuad is offline
Pala4
Senior Member
Join Date: Dec 2007
Old 06-29-2015 , 17:19   Re: [ANY] Player Analytics
Reply With Quote #242

What error?

[player_analytics.smx] Unable to insert row for client Арчи Хартстрингс<263><[U:1:183928510]><>. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Pala4 is offline
Phaiz
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 06-29-2015 , 20:07   Re: [ANY] Player Analytics
Reply With Quote #243

Quote:
Originally Posted by Vastrix View Post
And under which path should i place the database?
Do you have a vps or a shared hosting server? If you have a vps then you should have (or be able to) install phpmyadmin. I've never used any other program but that one is -very- straight forward and easy to use
__________________
Phaiz is offline
Vastrix
Senior Member
Join Date: Aug 2012
Location: Zion
Old 06-30-2015 , 05:20   Re: [ANY] Player Analytics
Reply With Quote #244

Ok, thanks guys!
Vastrix is offline
mazdarx8
Veteran Member
Join Date: Aug 2014
Old 07-02-2015 , 15:45   Re: [ANY] Player Analytics
Reply With Quote #245

Quote:
Originally Posted by Stylee32 View Post
Is there a SQL query to remove players who have one connection and 0:00:00 time played?
Push.,...
mazdarx8 is offline
PolyQuad
Member
Join Date: Oct 2011
Old 07-02-2015 , 16:07   Re: [ANY] Player Analytics
Reply With Quote #246

Quote:
Originally Posted by mazdarx8 View Post
Is there a SQL query to remove players who have one connection and 0:00:00 time played?
I am sure it isnt hard to do, I looked in my database and I dont see any instance in thousands of connections of anyone that has 1 connection and 0 time. Are you saying when you look in your database you have entries with duration = 0?

EDIT:
Ok after looking again I see single entries where players have a NULL duration, which probably occurs when the server crashes. This query should show you those entries in your table

SELECT auth, count(auth), sum(duration) from player_analytics
group by auth
having count(auth) = 1 and sum(duration) is null


You probably just want to delete all null duration entries from your analytics table. I would do this when your server was empty so you dont delete data of a newly joined player that has yet to leave the server.

Back up your table by copying it first before testing
CREATE TABLE player_analytics_backup select * from player_analytics;

Then just try
DELETE FROM player_analytics where duration is null;

Last edited by PolyQuad; 07-02-2015 at 17:05.
PolyQuad is offline
Caaine
Member
Join Date: Oct 2013
Old 07-02-2015 , 20:06   Re: [ANY] Player Analytics
Reply With Quote #247

my site is to slow

Last edited by Caaine; 07-12-2015 at 06:42.
Caaine is offline
Phaiz
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 08-04-2015 , 07:12   Re: [ANY] Player Analytics
Reply With Quote #248

Would it be possible to add tracking of private or public player Steam profiles?
__________________
Phaiz is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 08-04-2015 , 15:58   Re: [ANY] Player Analytics
Reply With Quote #249

Quote:
Originally Posted by Phaiz View Post
Would it be possible to add tracking of private or public player Steam profiles?
That could be possible, although I'm not sure how much I want to add API requests to the plugin.
__________________
Dr. McKay is offline
Phaiz
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 08-04-2015 , 19:44   Re: [ANY] Player Analytics
Reply With Quote #250

Quote:
Originally Posted by Dr. McKay View Post
That could be possible, although I'm not sure how much I want to add API requests to the plugin.
The only reason I ask is it could help server owners determine if it would be worth while to run a plugin that kicks players with private Steam profiles
__________________
Phaiz 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 04:45.


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