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

Created 2 years ago2022-03-22 07:21:21 UTC by ThePiroman ThePiroman

Posted 2 years 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 2 years ago2022-03-22 14:02:06 UTC Post #346355
Hi. What does ComplainAboutLowAmmo look like?
Oskar Potatis Oskar Potatis🦔
You must be logged in to post a response.