Raised This Month: $ Target: $400
 0% 

Native Error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NiQu
Veteran Member
Join Date: Nov 2009
Old 02-09-2010 , 16:56   Native Error
Reply With Quote #1

Hello, i need some help..

im getting this when server starts(server still works and plugin works fine).

PHP Code:
Invalid CVAR Pointer
Run time error 10
native error (native "get_pcvar_num")
Ultimtae_VIP.sma::plugin_precache (line 123
Here's the function(inc line 123):

PHP Code:
public plugin_precache()
{
    if ( 
get_pcvar_num(usemodels) == 1)
    {
        
precache_model("models/player/smith/smith.mdl")
    }
    return 
PLUGIN_CONTINUE;

__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]
NiQu is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 02-09-2010 , 17:53   Re: Native Error
Reply With Quote #2

plugin_precache is called before plugin_init. Register the cvar in plugin_precache.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
NiQu
Veteran Member
Join Date: Nov 2009
Old 02-09-2010 , 18:23   Re: Native Error
Reply With Quote #3

Thanks
Will do
__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]
NiQu 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 07:25.


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