Ok....so in my plugin i have a skin and originally i used engine entity_set_string() but Connor told me to use fakemeta's set_pev here....
http://forums.alliedmods.net/showpos...2&postcount=11
now....i either did it wrong, misunderstood his post, or it is just an incorrect concept. Either way...i need this fixed.
This is what i did:
PHP Code:
// globals
new g_allocPmod, g_allocVmod // model Handles
// plugin_init
g_allocPmod = engfunc(EngFunc_AllocString, "model/p_bknuckles.mdl")
g_allocVmod = engfunc(EngFunc_AllocString, "model/v_bknuckles.mdl")
// show_model
set_pev(id, pev_viewmodel, g_allocVmod)
set_pev(id, pev_weaponmodel, g_allocPmod)
// This was my original code (that works fine)
entity_set_string(id, EV_SZ_viewmodel, "models/v_bknuckles.mdl")
entity_set_string(id, EV_SZ_weaponmodel, "models/p_bknuckles.mdl")
can someone tell me what's going on here? I read the includes, stocks, and const files for fakemeta and it didn't tell me anything, realy.
__________________