I made a economy script, but for some reason i got an bug and dont know why, I made a variable thats look like this
PHP Code:
int g_Data[MAXPLAYERS + 1][Data_Type]
.
In this variable i store data from database. OnClientPostAdminCheck, i get data from Database and put the value into the variable for the client, and OnClientDisconnect, i update database with the value from variable for the respective client.
Now the error comes, sometimes, i dont know why, some user data are set to 0, i think about the events or something, i changed the join event and disconnect but not a little change. Probably my g_Data variable is not storing the correct value for a client sometimes and it makes it 0. If somebody can correct me, i will be thankfull <3
__________________