help 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: help ammo bug (
/showthread.php?tid=468149)
help ammo bug -
gotwarzone - 06.10.2013
Help my ammo becomes -31230 something like this. And I can't switch weapons. Is there any other way to make ammo limit? Thanks!
Re: help ammo bug -
***Niko*** - 06.10.2013
What GameMode you use?
Re: help ammo bug -
gotwarzone - 06.10.2013
Quote:
Originally Posted by Stefan_Salvatore
What GameMode you use?
|
I make a new one. I didn't download it from gamemode board. And if you would like to know the gamemode only had maps, no commands and other addons.
Anyway this is on my filterscript..
Код:
if(listitem == 0)
{
GivePlayerWeapon(playerid, 25, AMMO);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 26, AMMO);
}
if(listitem == 2)
{
GivePlayerWeapon(playerid, 27, AMMO);
}
When I spawn a gun it has 5000 ammo and when I spawn again same weapon it will be 10000 now. So basically it will get bugged if you reached around 60000 ammo above.
Can anyone please tell me. How to make a ammo limititer?