I'm proabbly making a silly mistake, but why am i getting the compile error "Argument mismatch on line 1"
Code:
public set_phone_model(id,function)
{
if(equali(function,"g_on")) { // Error is here
//Model
}
else {
entity_set_string(id,EV_SZ_viewmodel,"")
entity_set_string(id,EV_SZ_weaponmodel,"")
entity_set_int(id,EV_INT_weaponanim,0)
}
return PLUGIN_HANDLED
}