Raised This Month: $ Target: $400
 0% 

fakemeta's set_pev crash server


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 06-13-2012 , 11:56   Re: fakemeta's set_pev crash server
Reply With Quote #10

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:
// globals 
new g_allocPmodg_allocVmod    // model Handles 
static const szg_Pbk[] = "models/p_bknuckles.mdl"
static const szg_Vbk[] = "models/v_bknuckles.mdl"

// plugin_init 
g_allocPmod engfunc(EngFunc_AllocStringszg_Pbk//"model/p_bknuckles.mdl") 
    
g_allocVmod engfunc(EngFunc_AllocStringszg_Vbk//"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"
or do i skip the EngFunc_AllocString part and just use set_pev(id, pev_viewmodel, szg_Vbk)
__________________
What an elegant solution to a problem that doesn't need solving....
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