Quote:
Originally Posted by Napoleon_be
Show your changes, you might be using argbreak() the wrong way.
|
This two lines showed warnings, in top of public load_models function(the php i attached in the first post)
PHP Code:
argbreak(read,left,47,right,47)
PHP Code:
argbreak(right,right,47,right2,31)
i simply replaced strbreak with argbreak nothing else.
Quote:
Originally Posted by fysiks
Then either the plugin didn't work to begin with or there is a bug in AMX Mod X 1.10
|
It was working just fine in 1.8.2, also i thought that 1.10 may be bugged so i changed to 1.9.0, but still the same.
EDIT: Maybe the argbreak is fine, but i read somewhere in the forum that get_user_team is not fixed? in this plugin in curweapon event hook there is a get_user_team, is it maybe bcs of that?
PHP Code:
public Changeweapon_Hook(id)
{
if( ! is_user_alive(id) )
{
return PLUGIN_CONTINUE
}
static model[32], i, team
team = get_user_team(id)
pev(id,pev_viewmodel2,model,31)
for(i=0;i<v_modelsnum;i++)
{
if(equali(model,old_v_models[i]))
{
if(v_models_team[i]==team || !v_models_team[i])
{
set_pev(id,pev_viewmodel2,new_v_models[i])
break;
}
}
}
pev(id,pev_weaponmodel2,model,31)
for(i=0;i<p_modelsnum;i++)
{
if(equali(model,old_p_models[i]))
{
if(p_models_team[i]==team || !p_models_team[i])
{
set_pev(id,pev_weaponmodel2,new_p_models[i])
break;
}
}
}
return PLUGIN_CONTINUE
}