Quote:
Originally Posted by fezh
Do you have enabled the fakemeta module on modules.ini?
|
That's not the problem.
The problem is the code:
PHP Code:
public fw_Touch(entity, toucher)
{
// Entity is not valid
if(!pev_valid(entity))
return FMRES_IGNORED;
// Get model, toucher classname, and entity classname
new model[33], toucherclass[33], entityclass[33]
pev(entity, pev_model, model, charsmax(model))
pev(entity, pev_classname, entityclass, charsmax(entityclass))
pev(toucher, pev_classname, toucherclass, charsmax(toucherclass))
if(!equali(toucherclass, "player") || !equali(entityclass, "weaponbox"))
return FMRES_IGNORED;
if(equali(model, sawnoff_model_w))
if(allowed_touch(toucher))
g_sawnoff_shotgun[toucher] = true;
return FMRES_IGNORED;
}
Line 218:
PHP Code:
pev(toucher, pev_classname, toucherclass, charsmax(toucherclass))
Should be:
PHP Code:
public fw_Touch(entity, toucher)
{
// Entity is not valid
if(!pev_valid(entity) || !pev_valid(toucher))
return FMRES_IGNORED;
// Get model, toucher classname, and entity classname
new model[33], toucherclass[33], entityclass[33]
pev(entity, pev_model, model, charsmax(model))
pev(entity, pev_classname, entityclass, charsmax(entityclass))
pev(toucher, pev_classname, toucherclass, charsmax(toucherclass))
if(!equali(toucherclass, "player") || !equali(entityclass, "weaponbox"))
return FMRES_IGNORED;
if(equali(model, sawnoff_model_w))
if(allowed_touch(toucher))
g_sawnoff_shotgun[toucher] = true;
return FMRES_IGNORED;
}
__________________