fakemeta's set_pev crash server
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:
|
Re: fakemeta's set_pev crash server
Code is ok, you may have made an error somewhere else.
|
Re: fakemeta's set_pev crash server
You forgot the "s" in "models" for your model path.
|
Re: fakemeta's set_pev crash server
Oh lol !!!
That wouldn't have happened if you had do : new const g_szModel[] = "models/p_bknuckles.mdl" .. precache_model( g_szModel ) .. g_iAlloc = engfunc(EngFunc_AllocString, g_szModel) And doing this you save again some memory. |
Re: fakemeta's set_pev crash server
Quote:
Quote:
|
Re: fakemeta's set_pev crash server
Quote:
Your original code has multiple constants. |
Re: fakemeta's set_pev crash server
Quote:
For example I have this: PHP Code:
PHP Code:
|
Re: fakemeta's set_pev crash server
Yes and yes.
|
Re: fakemeta's set_pev crash server
Ok, thanks and thanks :mrgreen:.
|
Re: fakemeta's set_pev crash server
So this would be the best way to do it, yes?
Sorry to get redundant with questions, i'm having a mid-life crisis and just ran out of weed. PHP Code:
|
| All times are GMT -4. The time now is 06:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.