Raised This Month: $ Target: $400
 0% 

[SOLVED]Invalid cvar pointer?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nur56
Member
Join Date: Apr 2007
Old 09-26-2011 , 07:03   [SOLVED]Invalid cvar pointer?
Reply With Quote #1

Code:
L 09/26/2011 - 13:56:02: Invalid CVAR pointer
L 09/26/2011 - 13:56:02: [AMXX] Displaying debug trace (plugin "HomeFree.amxx")
L 09/26/2011 - 13:56:02: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 09/26/2011 - 13:56:02: [AMXX]    [0] HomeFree.sma::PSpawn (line  200)

SOLVED thanks to Arkshine

Last edited by Nur56; 09-26-2011 at 11:33. Reason: updated src
Nur56 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-26-2011 , 07:34   Re: Invalid cvar pointer?
Reply With Quote #2

What is and where is declared PSpawn exactly ?
__________________
Arkshine is offline
Nur56
Member
Join Date: Apr 2007
Old 09-26-2011 , 07:36   Re: Invalid cvar pointer?
Reply With Quote #3

It is declared but I removed everything because it's irrelevant, but I'll update with full src now.
Nur56 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-26-2011 , 07:49   Re: Invalid cvar pointer?
Reply With Quote #4

Try to register the cvars before the events/forwards.
__________________
Arkshine is offline
Nur56
Member
Join Date: Apr 2007
Old 09-26-2011 , 07:59   Re: Invalid cvar pointer?
Reply With Quote #5

Seemed to be working except there are no errors now but PreThink is not doing anything?

updated SRC again.
Nur56 is offline
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 19:33.


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