Closed ivanmaxlogiudice closed 7 years ago
new iAmmoID = ExecuteHam(Ham_Item_PrimaryAmmoIndex, pWeapon)
// or
// new iAmmoID = rg_get_weapon_info(get_member(pWeapon, m_iId), WI_AMMO_TYPE)
new iCount = get_member(pPlayer, m_rgAmmo, iAmmoID)
server_print("iCount %i", iCount)
for (new iIndex = 0; iIndex < 32; iIndex++)
{
console_print(iPlayerID, "rgAmmo[ %d ]: %d", iIndex, rgAmmo[ iIndex ]);
}
wtf?
new a = get_member(iPlayerID, m_rgAmmo, WEAPON_P228)
new ammo = get_member(iPlayerID, m_rgAmmo, iAmmoType);
My bad, i think i get rgAmmo[ 32 ] with it ✌️
I can't get the m_rgAmmo from the player on ItemPostFrame, i get all 0 with it.
Plugin to test
Output: