I am getting runtime error 4 on this simple part of code.
Can anyone help me to fix it ?
Code:
// Current Weapon info
public message_cur_weapon(id)
{
// Not alive or zombie
if (!g_isalive[id] || g_zombie[id])
return;
if (g_sniper[id])
return;
if (b_uAmmo[id])
{
//set_pdata_int(get_pdata_cbase(id, 373), 51, 100, 4)
// HUD should show full clip all the time
set_msg_arg_int(3, get_msg_argtype(3), MAXCLIP[weapon])
}
}
Error on this line :
if (!g_isalive[id] || g_zombie[id])