Raised This Month: $ Target: $400
 0% 

What is the best way to save player stats?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
V I R U S
Senior Member
Join Date: Jul 2004
Location: Russia / Germany
Old 01-29-2010 , 13:57   What is the best way to save player stats?
Reply With Quote #1

Hi AMXX coders!

I'm trying to make own plugin to save player stats im MySQL database.


What I'm currently curious about, is the way to get the stats, no, better to save how to save them for a current map.

I've found two ways.
1. get_user_stats - is the first way, but by calling it, it retrieves not only the stats for the current map, but overall stat if player has played before.

2. get_user_rstats - retrieves the stats for each round, must be saved globally and added new each round.


For the first one, i really don't know, is it possible to get the stats only for the current map?

For the second, if i will define global variable like g_cache[MAX_PLAYERS][FILEDS_NUMBER] will my server get laggy?


Thanks for all answers!
__________________
V I R U S is offline
Send a message via ICQ to V I R U S
Old 01-30-2010, 07:17
V I R U S
This message has been deleted by YamiKaitou. Reason: bump
Old 01-30-2010, 08:59
matsi
This message has been deleted by YamiKaitou. Reason: bump
Old 01-30-2010, 13:31
V I R U S
This message has been deleted by YamiKaitou. Reason: bump
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 07:24.


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