-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data Loss #22
Comments
You mean karma saving thing? It is hard to understand this one. |
No, i'm talking about the data that saves the server like your points, kills as T, kills as D, kills as I, etc. |
They are called stats. Anyways, will check, but needs a bit more info. |
Not much info on it, when a client DC's sometimes it looses the stats, when i used a anti-retry, the player gets kicked for doing retry and then is when the stats gets lost, he starts from zero, we fixed that and it worked but it seems to be another trigger for it or something |
If you could do some sort of testing that could help.
before this line, add log_amx("TTT - MySQL_Load: %d == %s", id, g_szPlayerName[id])
=======================================
before this line, add log_amx("TTT - MySQL_LoadData: %d == %s == %d", id, g_szPlayerName[id], SQL_NumResults(query))
=======================================
before this line, add log_amx("TTT - table_insert: %d == %s", id, g_szPlayerName[id], name) where name is get_user_name functions result.
|
Let me know if those results when something weird happens. |
Ok, i'll give upload it to the server. |
The problem doesn't just happen with 1 name, it happens randomly (there's a trigger obviously) when the client attemps a conection to the server |
Sometimes when a player DC's or gets kicked by the server (Maybe banned) his data gets deleted when he rejoins, he has 1.000.000 points (Example) and when he gets in again, 0.
The text was updated successfully, but these errors were encountered: