Vladislavspawn
Компетентный
ок, разобрался со всем но тут бам и дебаги. куку
Код:
[21:25:34] [debug] #0 00433fdc in public SecondTimer () at C:\Users\Shalu\Desktop\серв\gamemodes\arizona.pwn:59756
[21:25:35] [debug] Run time error 4: "Array index out of bounds"
[21:25:35] [debug] Accessing element at index 4095 past array upper bound 12
C++:
}
new weapon = GetPlayerWeapon(playerid);
new ammo = GetPlayerAmmo(playerid);
new weap = GetPlayerWeapon(playerid);
new slot = GetWeaponSlot(weap);
if(gunmute[playerid]<=gettime())
{
// if(PI[playerid][pGuns][GetWeaponSlot(weapon)] == weapon)
{
if(PI[playerid][pAmmos][slot]==GetPlayerAmmo(playerid))
{
PI[playerid][pLastGun]=weapon;
PI[playerid][pLastAmmo]= ammo;
}
}
}
