25.02.2010, 06:35
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:
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); }