Weapon is gone on relog - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Weapon is gone on relog (
/showthread.php?tid=407908)
Weapon is gone on relog -
Xlithan - 15.01.2013
If a player logs off whilst holding a weapon, next time they log in that weapon is removed from their inventory.
I've tried to search for this bug but couldn't find it, before somebody assumes I'm retarded.
I was planning to force change the wielded weapon to none before the server disconnects the player but just wanted to find out if anybody else had this, and what they did to fix it.
Thanks.
Re: Weapon is gone on relog -
silvan - 15.01.2013
erm how about making a saving system / login system so then when a player come back the server can give it back to them
Re: Weapon is gone on relog -
Xlithan - 17.01.2013
It does lol. Just a confusing error that I haven't been able to wrap my head around. It saves the weapons but just not when you have it in your hand.
Re: Weapon is gone on relog -
denNorske - 17.01.2013
Its pretty difficult if you don't post any codes for us. We would need the part where the server should write the values to the files / MySQL on disconnect, to check for any issues there.
Thanks.