[JailBreak] Dissapearing packs [Free Code For You]
I do have a little bit modified jailbreak shop 3.0
In plugin's version i do have JB Packs are saved in mysql by players IP adress. Some players complaining that JB Packs they earned by killing CTs disappeared. JB Packs not disappearing periodically, in logs i cant find any errors. So i would like to ask you to look at the code and tell me if there's anything wrong why JB packs could disappear. This is just a part of code witch is related with mysql Code:
new Handle:g_hDbTuple; |
Re: Dissapearing packs
Make a check if the data has been loaded when saving it, because you will save nothing.
|
Re: Dissapearing packs
You mean like that?
Code:
new bool:SQLLoaded[ 33 ]; |
Re: Dissapearing packs
Yes, that should work.
|
Re: Dissapearing packs
But now i'm thinking, how about "public plugin_end()"? Packed are saved there too. So i guess more sensible would be to check if data have been loaded not in PLUGIN_END() or CLIENT_DISSCONECT( id ), but in SQL_SaveDbTuple( id )
Just like that Code:
SQL_SaveDbTuple( id ) |
Re: Dissapearing packs
Yeah, you can check it there too.
|
Re: delete this thread
Dude....don't delete all your posts from a question. Someone could learn from them.
|
Re: [JailBreak] Dissapearing packs [Free Code For You]
This forum is not your personal forum.
Put back posts. Next time you do such a think i request a ban, i hope you understand. |
| All times are GMT -4. The time now is 06:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.