Need help with da code error Created 4 months ago2022-03-22 07:21:21 UTC by ThePiroman ThePiroman

Created 4 months ago2022-03-22 07:21:21 UTC by ThePiroman ThePiroman

Posted 4 months ago2022-03-22 07:21:21 UTC Post #346354
Uhhh,hello everyone,im new to half life modding.So,im doing addon for Half-Payne,but here's the thing:
I get a "too many arguments in function call" error.Here is code:
`if ( m_pPlayer->m_rgAmmo[m_iClip] <= 0) {
m_pPlayer->ComplainAboutLowAmmo(
m_iId == WEAPON_GLOCK ||
m_iId == WEAPON_GLOCK_TWIN ||
m_iId == WEAPON_INGRAM ||
m_iId == WEAPON_INGRAM_TWIN ||
m_iId == WEAPON_PYTHON ||
m_iId == WEAPON_CROSSBOW ||
m_iId == WEAPON_MP5
);
}
return 0;`
Posted 4 months ago2022-03-22 14:02:06 UTC Post #346355
Hi. What does ComplainAboutLowAmmo look like?
You must be logged in to post a response.