Raised This Month: $ Target: $400
 0% 

[SOLVED]get_pcvar_num native error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-30-2009 , 14:01   Re: get_pcvar_num native error
Reply With Quote #1

Quote:
Originally Posted by xbatista View Post
Register cvars before the forwards.
PHP Code:
// cvars

// your forwards
RegisterHam(Ham_Killed"player""Ham_Killed_player"1
Why should this matter? enable will be assigned before Ham_Killed is called anyways.
__________________
fysiks is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 10-30-2009 , 14:12   Re: get_pcvar_num native error
Reply With Quote #2

Quote:
Originally Posted by fysiks View Post
Why should this matter? enable will be assigned before Ham_Killed is called anyways.
I remember in my plugin when I registered cvars after forwards it sometimes return error in log
__________________
xbatista is offline
Send a message via Skype™ to xbatista
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 10-30-2009 , 14:15   Re: get_pcvar_num native error
Reply With Quote #3

Quote:
Originally Posted by xbatista View Post
I remember in my plugin when I registered cvars after forwards it sometimes return error in log
If you try to use a cvar before registering it obviously it will throw some error. Somehow players can't get killed before plugin_init is called, so in this case it doesn't matter.
SnoW is offline
Send a message via MSN to SnoW
Reply



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 17:46.


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