MySql OnPlayerUpdate
#1

Welcome
I have a problem with saving data to MySql (OnPlayerUpdate), I do not know what the reason is that it does not save me, although the variables produces public. I have a record made on the basis of Moderntopii so it should not perhaps be such an error. Everything looks smooth, but the database I see no changes.

Example:
Код:
MySQLUpdatePlayerInt(query, InfoGracza[playerid][pSQLID], "DonateRank", InfoGracza[playerid][pDonateRank]);
Please Help
Reply
#2

No, no and no.


Do not use OnPlayerUpdate to save/load data from files or SQL. It gets called ~54 per second, so that is 54 queries per second what it just too much.

Why would you save donate rank all the time? It doesn't get changed very frequently, does it?
Reply
#3

I write to SQL so in public OnPlayerUpdatePlayer query is performed only on my command.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)