Raised This Month: $ Target: $400
 0% 

Debug Error in HLDS Console


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lordshiva
BANNED
Join Date: Aug 2009
Location: Heaven
Old 10-06-2009 , 13:20   Debug Error in HLDS Console
Reply With Quote #1

L 10/06/2009 - 22:49:06: Invalid player id 0
L 10/06/2009 - 22:49:06: [AMXX] Run time error 10 (plugin "match.amxx") (native "get_user_weapon") - debug not enabled!
L 10/06/2009 - 22:49:06: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

PHP Code:
public event_new_round() {
    if(
g_KnifeRound && !get_pcvar_num(kr_teamvote)) {
        
g_KnifeRound false
    
}
}

public 
cur_weapon() {
    if(
g_KnifeRound) {
        
engclient_cmd(0,"weapon_knife")
    }
}

public 
CmdRestartRound(idlevelcid) {
    if (!
cmd_access(idlevelcid1)) return PLUGIN_CONTINUE
    g_KnifeRound 
false
    server_cmd
("sv_restartround 1")
    return 
PLUGIN_CONTINUE
}

public 
CmdKnifeRound(id,level,cid) {    
    if(!
cmd_access(id,level,cid,1)) return PLUGIN_CONTINUE
    server_cmd
("sv_restartround 1")    
    
set_task(2.0"KnifeRoundStart"id)
    
ColorChat(0RED"[KR] Kniferound is started!")
    
ColorChat(0RED"[KR] Kniferound is started!"
   
    return 
PLUGIN_CONTINUE
}

public 
CmdSwapTeams(id,level,cid) {
    if(
cmd_access(id,level,cid,1)) {
        
g_KnifeRound false
        SwapTeams
()
    }
}

public 
KnifeRoundStart(id) {
    
g_KnifeRound true;
    for(new 
033i++)
    {
        new 
weapon get_user_weapon(id)
        if (
weapon != CSW_KNIFE && is_user_alive(i)) 
            
engclient_cmd(i"weapon_knife")
    }
public 
fwd_CmdStart_pre(iduc_handle) {
    if(
g_KnifeRound && get_pcvar_num(kr_noslash) == 1) {
    static 
button;
    
button get_uc(uc_handleUC_Buttons);
    if(
button IN_ATTACK)
    {
        
button &= ~IN_ATTACK;
        
button |= IN_ATTACK2;    
    }
    
set_uc(uc_handleUC_Buttonsbutton);
    return 
FMRES_SUPERCEDE;
    }
    return 
FMRES_IGNORED;

THERE IS DEBUGGING ERRORS IN CONSOLE OF HLDS CAN SOME1 CORRECT IT
lordshiva 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 22:42.


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