Raised This Month: $ Target: $400
 0% 

fakemeta's set_pev crash server


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 06-12-2012 , 14:11   fakemeta's set_pev crash server
Reply With Quote #1

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_allocPmodg_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(idpev_viewmodelg_allocVmod)
        
set_pev(idpev_weaponmodelg_allocPmod)

// This was my original code (that works fine)
entity_set_string(idEV_SZ_viewmodel"models/v_bknuckles.mdl")
entity_set_string(idEV_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.
__________________
What an elegant solution to a problem that doesn't need solving....

Last edited by Liverwiz; 06-12-2012 at 14:17.
Liverwiz is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode