Quote:
Originally Posted by RedFusion
pawn Код:
new pAmmo[MAX_PLAYERS][13], pWeapon[MAX_PLAYERS][13]; pTotalFired[MAX_PLAYERS];
public OnPlayerUpdate(playerid) { for(new slot = 0; slot < 13; slot++) { new ammo, weaponid; GetPlayerWeaponData(playerid, slot, weaponid, ammo); if(weaponid == pWeapon[playerid][slot] && ammo < pAmmo[playerid][slot) { new ShotsFired = (pAmmo[playerid][slot] - ammo); pTotalFired[playerid] += ShotsFired; } pAmmo[playerid][slot] = ammo; pWeapon[playerid][slot] = weaponid; } return 1; }
Try this!
|
error 033: array must be indexed (variable "-unknown-")