AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [SOLVED]Invalid cvar pointer? (https://forums.alliedmods.net/showthread.php?t=168247)

Nur56 09-26-2011 07:03

[SOLVED]Invalid cvar pointer?
 
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

Arkshine 09-26-2011 07:34

Re: Invalid cvar pointer?
 
What is and where is declared PSpawn exactly ?

Nur56 09-26-2011 07:36

Re: Invalid cvar pointer?
 
It is declared but I removed everything because it's irrelevant, but I'll update with full src now.

Arkshine 09-26-2011 07:49

Re: Invalid cvar pointer?
 
Try to register the cvars before the events/forwards.

Nur56 09-26-2011 07:59

Re: Invalid cvar pointer?
 
Seemed to be working except there are no errors now but PreThink is not doing anything?

updated SRC again.


All times are GMT -4. The time now is 19:33.

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