[FIXED] Player's data wipes if exit during Mapchange [SQLITE]
Hello and thanks for your time :)
I'm having issues with SQLITE data being wiped for a specific player that quits during a mapchange. |
Re: [HELP] Player's data wipes if exit during Mapchange [SQLITE]
Before you do anything and try to save data, you must make sure that the player is actually connected, you dont want to save an empty value if the player leaves and you try to save.
Add an is_user_connected(id) check inside your SQLITE_Save function. |
Re: [HELP] Player's data wipes if exit during Mapchange [SQLITE]
It worked, thanks!
Code:
if (!is_user_connected( id )) { |
Re: [HELP] Player's data wipes if exit during Mapchange [SQLITE]
it should work fine. I see you missed a bracket in the code you posted here, maybe that is causing your problem.
|
Re: [HELP] Player's data wipes if exit during Mapchange [SQLITE]
Yes that was it, you just made thousands of people happy. :)
|
Re: [FIXED] Player's data wipes if exit during Mapchange [SQLITE]
dont delete the code after someone helps you, or you wont get any help in the future!
|
Re: [FIXED] Player's data wipes if exit during Mapchange [SQLITE]
Quote:
|
| All times are GMT -4. The time now is 18:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.