AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Native Error (https://forums.alliedmods.net/showthread.php?t=118299)

NiQu 02-09-2010 16:56

Native Error
 
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;



Emp` 02-09-2010 17:53

Re: Native Error
 
plugin_precache is called before plugin_init. Register the cvar in plugin_precache.

NiQu 02-09-2010 18:23

Re: Native Error
 
Thanks :P
Will do :D


All times are GMT -4. The time now is 07:25.

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