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

[CSGO] Client database update help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lawyn
Junior Member
Join Date: Jul 2020
Old 04-18-2023 , 17:27   [CSGO] Client database update help
Reply With Quote #1

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
__________________
Lawyn 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 20:47.


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