12.08.2014, 11:15
Why the m4a1ammo[playerid] is always 0 ?
This works perfectly, but when i try to give the gun
It gives M4a1 with 0 ammo
PHP код:
new ammo = GetPlayerAmmo(playerid);
m4a1ammo[playerid] = ammo;
if(GetPlayerWeapon(playerid) == 31) AddItem(playerid,"M4A1",ammo) && RemovePlayerWeapon(playerid, 31);
}
PHP код:
GivePlayerWeapon(playerid, 31, m4a1ammo[playerid]);