Unlimited Ammo without lag/bug.
#1

I got 99999 for ammo, But when I logging and loadding my guns. I get sometimes a gun with -1 ammo orsomething. So when I scroll to it its disappear in 0.5 sec.So I cannot shoot with it.
Here is my give saved weapons fuction:
Code:
				if(PlayerStats[playerid][Slot1] != 0)
				{ GivePlayerWeapon(playerid, PlayerStats[playerid][Slot1], 99999); }
				if(PlayerStats[playerid][Slot2] != 0)
				{ GivePlayerWeapon(playerid, PlayerStats[playerid][Slot2], 99999); }
				if(PlayerStats[playerid][Slot3] != 0)
				{ GivePlayerWeapon(playerid, PlayerStats[playerid][Slot3], 99999); }
				if(PlayerStats[playerid][Slot4] != 0)
				{ GivePlayerWeapon(playerid, PlayerStats[playerid][Slot4], 99999); }
				if(PlayerStats[playerid][Slot5] != 0)
				{ GivePlayerWeapon(playerid, PlayerStats[playerid][Slot5], 99999); }
				if(PlayerStats[playerid][Slot6] != 0)
				{ GivePlayerWeapon(playerid, PlayerStats[playerid][Slot6], 99999); }
				if(PlayerStats[playerid][Slot7] != 0)
				{ GivePlayerWeapon(playerid, PlayerStats[playerid][Slot7], 99999); }
				if(PlayerStats[playerid][Slot8] != 0)
				{ GivePlayerWeapon(playerid, PlayerStats[playerid][Slot8], 99999); }
				if(PlayerStats[playerid][Slot9] != 0)
				{ GivePlayerWeapon(playerid, PlayerStats[playerid][Slot9], 99999); }
				if(PlayerStats[playerid][Slot10] != 0)
				{ GivePlayerWeapon(playerid, PlayerStats[playerid][Slot10], 99999); }
				if(PlayerStats[playerid][Slot11] != 0)
				{ GivePlayerWeapon(playerid, PlayerStats[playerid][Slot11], 99999); }
Reply


Messages In This Thread
Unlimited Ammo without lag/bug. - by RSC_Quicker - 25.02.2010, 06:35
Re: Unlimited Ammo without lag/bug. - by silvan - 25.02.2010, 08:33
Re: Unlimited Ammo without lag/bug. - by bajskorv123 - 25.02.2010, 08:45
Re: Unlimited Ammo without lag/bug. - by RSC_Quicker - 25.02.2010, 18:28

Forum Jump:


Users browsing this thread: 2 Guest(s)