Ammo Bug - 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: Ammo Bug (
/showthread.php?tid=579585)
Ammo Bug -
dionisak0s - 28.06.2015
So I currently have a new system for my server, instead of using the default slots and let a player hold a lot of weapons, I limited it to 3, Melee, Primary and Secondary, when I use /dropgun and throw the gun down and I have 2 Guns, let's say Deagle and M4A1, once I drop one of them I can't switch to the gun because it has a negative ammo value, once I pick up a gun and it fills up my empty slot then everything works fine.
Re: Ammo Bug -
Inn0cent - 28.06.2015
Show us the code?
Re: Ammo Bug -
dionisak0s - 28.06.2015
Oh, I feel so dumb right now, I was using a stock on the response of the command and plus the RemovePlayerWeapon, I just removed it and tested it In-Game, everything works funny, it seems that the problem was the RemovePlayerWeapon which I forget to remove. Sorry about making this post, I was trying to make this system for hours and I was annoyed a lot already.