Can anyone explain to me why I get argument type mismatch (Argument 2) and (Argument 3) at the last on the red code?
Code:
#define Model1 "models/model1.mdl"
#define Model2 "models/model2.mdl"
public plugin_init()
{
register_clcmd("say test", "function1")
}
public plugin_precache()
{
precache_model(Model1)
precache_model(Model2)
}
public function1(id)
{
if(is_user_case_one(id)
{
function2(id, Model1)
}
else
{
function2(id, Model2)
}
}
public function2(id, model)
{
cs_set_player_weapon_model(id, CSW_KNIFE, model)
}
__________________