Raised This Month: $ Target: $400
 0% 

set_cvar_num on plugin hook


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-15-2014 , 03:03   Re: set_cvar_num on plugin hook
Reply With Quote #8

plugin_init() is run when the plugin is initiated. Cvars should be set in plugin_cfg().

If you are having issues using Ham forwards, you should look at existing working plugins that use the functions you are interested in. You are using RegisterHam() incorrectly. If you look at the include for Ham (hamsandwich.inc), you will see that the second argument is the EntityClass, not the function you want called (which is called the "callback").
__________________
fysiks 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 05:54.


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