Raised This Month: $51 Target: $400
 12% 

[SOLVED]get_pcvar_num native error


Post New Thread Reply   
 
Thread Tools Display Modes
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 10-30-2009 , 14:12   Re: get_pcvar_num native error
Reply With Quote #11

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 #12

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
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 10-30-2009 , 14:16   Re: get_pcvar_num native error
Reply With Quote #13

Quote:
Originally Posted by SnoW View Post
Totally false. Talking about these specific two lines of code you are right.
lol, I know, but as you say, I'm talking about those lines
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 10-30-2009 , 14:23   Re: get_pcvar_num native error
Reply With Quote #14

And
PHP Code:
public cleint_disconnect(id) { 
client

And delete this line :
PHP Code:
    RegisterHam(Ham_Spawn"player""Event_Spawn_player"1
__________________

Last edited by xbatista; 10-30-2009 at 14:27.
xbatista is offline
Send a message via Skype™ to xbatista
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 10-30-2009 , 14:28   Re: get_pcvar_num native error
Reply With Quote #15

PHP Code:
public cleint_disconnect(id) { 
Fixed

PHP Code:
    RegisterHam(Ham_Spawn"player""Event_Spawn_player"1
hehe ...
Sorry,i registered that for other function,but i remplaced with a task


SOLVED!

Thanks xbatista

Last edited by #8 SickneSS; 10-30-2009 at 14:30.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 10-30-2009 , 14:35   Re: [SOLVED]get_pcvar_num native error
Reply With Quote #16

__________________
xbatista is offline
Send a message via Skype™ to xbatista
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 23:28.


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