Raised This Month: $ Target: $400
 0% 

invalid cvar pointer, and i cant seem to figure out why...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
diamond-optic
Veteran Member
Join Date: May 2005
Old 06-20-2006 , 20:30   invalid cvar pointer, and i cant seem to figure out why...
Reply With Quote #1

im getting this error

Quote:
Invalid CVAR pointer
[AMXX] Displaying debug trace (plugin "dod_wildlife.amxx")
[AMXX] Run time error 10: native error (native "get_pcvar_num")
[AMXX] [0] dod_wildlife.sma::client_putinserver (line 94)
and heres that part of the code:

Code:
new p_dod_wildlife public plugin_init() {     register_plugin("DoD Wildlife","1.0","AMXX DoD Team")         p_dod_wildlife = register_cvar("dod_wildlife","1") } public client_putinserver(id) {     if(is_user_connected(id) && get_pcvar_num(p_dod_wildlife) == 1)         {         set_task(120.0,"wildlife_check",id)         } }

now i even tried copying from another plugin i have that uses the pcvar in the putinserver without any problems, but i still get the error with this one...

any ideas?

*UPDATE*

i removed the pvcar stuff from the putinserver and i still get that error when i calls that pcvar in another spot in the code...

idk.. maybe im an idiot and ive used pcvars plenty of times.. but it seems like im using it right..
__________________

Last edited by adm; 06-22-2006 at 08:42.
diamond-optic 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 07:58.


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