Raised This Month: $ Target: $400
 0% 

help with some dr vip plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
slypire
Junior Member
Join Date: May 2013
Old 08-09-2013 , 18:35   help with some dr vip plugin
Reply With Quote #1

Hi guys, I'm using DeathRun VIP 3.1 bu TbagT, original thread https://forums.alliedmods.net/showthread.php?t=159675


I have tried to fix some errors what i get in my logs, but no way, so maybe someone of you guys know how to fix next:

Code:
L 08/10/2013 - 00:22:07: Info (map "deathrun_easy_professional_xXx") (file "addons/amxmodx/logs/error_20130810.log")
L 08/10/2013 - 00:22:07: Invalid CVAR pointer
L 08/10/2013 - 00:22:07: [AMXX] Displaying debug trace (plugin "DeathrunVip.amxx")
L 08/10/2013 - 00:22:07: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 08/10/2013 - 00:22:07: [AMXX]    [0] DeathrunVip.sma::plugin_precache (line 161)
L 08/10/2013 - 00:23:25: Invalid player id 128
L 08/10/2013 - 00:23:25: [AMXX] Displaying debug trace (plugin "DeathrunVip.amxx")
L 08/10/2013 - 00:23:25: [AMXX] Run time error 10: native error (native "get_user_flags")
L 08/10/2013 - 00:23:25: [AMXX]    [0] DeathrunVip.sma::event_deathmsg (line 381)
L 08/10/2013 - 00:23:25: [AMXX] Displaying debug trace (plugin "DeathrunVip.amxx")
L 08/10/2013 - 00:23:25: [AMXX] Run time error 4: index out of bounds 
L 08/10/2013 - 00:23:25: [AMXX]    [0] DeathrunVip.sma::Hook_Deathmessage (line 1169)
L 08/10/2013 - 00:25:25: Invalid player id 128
L 08/10/2013 - 00:25:25: [AMXX] Displaying debug trace (plugin "DeathrunVip.amxx")
L 08/10/2013 - 00:25:25: [AMXX] Run time error 10: native error (native "get_user_flags")
L 08/10/2013 - 00:25:25: [AMXX]    [0] DeathrunVip.sma::event_deathmsg (line 381)
L 08/10/2013 - 00:25:25: [AMXX] Displaying debug trace (plugin "DeathrunVip.amxx")
L 08/10/2013 - 00:25:25: [AMXX] Run time error 4: index out of bounds 
L 08/10/2013 - 00:25:25: [AMXX]    [0] DeathrunVip.sma::Hook_Deathmessage (line 1169)
Now lines..
PHP Code:
public plugin_precache()
{
    if(
get_pcvar_num(cvar_model) == 1)
    {
        
precache_model(VIP_MODEL)
    }
    if(
get_pcvar_num(cvar_connect) == 1)
    {
            
precache_sound(VIP_CONNECT)
    }
    if(
get_pcvar_num(cvar_popup) == 1)
    {
        
precache_sound(MENU_POPUP)
    }
    if(
get_pcvar_num(cvar_ok) == 1)
    {
        
precache_sound(MENU_OK)
    }
    
gCylinderSprite precache_model"sprites/shockwave.spr" );

161 is this: if(get_pcvar_num(cvar_model) == 1)


PHP Code:
public event_deathmsg()
{
    new 
victim read_data(2)
    new 
killer read_data(1)

    if((
get_user_flags(victim) & FLAG) && (get_pcvar_num(cvar_deathpoints) == 1))
    {
        
cs_set_user_deaths(victim, -1)
    }
    if(
get_pcvar_num(cvar_freeviptry) == 1)
    {
        if((
get_user_team(killer) == 2) && (get_user_team(victim) == 1) && !(get_user_flags(killer) & FLAG))
        {
            
VipPoints[killer] += 1;
        }
    }

381 is this: if((get_user_flags(victim) & FLAG) && (get_pcvar_num(cvar_deathpoints) == 1))


And last error is this
PHP Code:
public Hook_Deathmessage(id)
{
    new 
killer read_data);
    new 
victim read_data);

    if( 
killer == victim )
    {
        return 
PLUGIN_HANDLED;
    }
        
    
HasSpeedvictim ] = false;
    
    
set_user_maxspeedvictim0.0 );

    if(
RandomFunction[id] == 2)
    {
        
set_user_godmode(id1)
    }

    return 
PLUGIN_CONTINUE;

1169 is this: HasSpeed[ victim ] = false;



Thats it guys, I rly hope some of you know how to fix this, plugin working fine, but still makin me much logs, and i want to fix that, thanks in advance!
slypire 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 15:45.


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