I tried with formatex to format the string before sending it to the native, compiler error is gone
But i still have a problem, why the fuck does this keeps crashing on me
I tested using client print and the string is fine, but for some reason it is crashing the server..
I tried inserting the string directly and it works.. any ideas ?
PHP Code:
formatex(sWeaponModel, charsmax(sWeaponModel), "models/v_%s.mdl", sWeaponName)
set_pev(iOwner, pev_viewmodel2, sWeaponModel)
formatex(sWeaponModel, charsmax(sWeaponModel), "models/p_%s.mdl", sWeaponName)
set_pev(iOwner, pev_weaponmodel, sWeaponModel)
__________________