Raised This Month: $ Target: $400
 0% 

Runtime Error (assistance needed)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
makiza
BANNED
Join Date: Mar 2009
Old 03-12-2011 , 12:15   Runtime Error (assistance needed)
Reply With Quote #1

hello there...

Well, while i'm running this plugin fails and comes out this:
Quote:
L 03/12/2011 - 10:24:13: [AMXX] Run time error 4 (plugin "zombie_plague40.amxx") - debug not enabled!
L 03/12/2011 - 10:24:13: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 03/12/2011 - 10:24:13: Unhandled dynamic native error
L 03/12/2011 - 10:24:13: [AMXX] Displaying debug trace (plugin "ZP_EMP.amxx")
L 03/12/2011 - 10:24:13: [AMXX] Run time error 10: native error (native "zp_get_user_zombie")
L 03/12/2011 - 10:24:13: [AMXX] [0] ZP_EMP.sma::emp_start (line 70)
this is the part of the code where the error is:
PHP Code:
public emp_start(id)
{       
    if(
zp_get_user_zombie(id))
        return 
PLUGIN_HANDLED;
    
    
server_cmd("mp_flashlight 0")
    
server_cmd("zp_triggered_lights 0")
    
server_cmd("zp_nvg_hum_color_R 0")
    
server_cmd("zp_nvg_hum_color_G 0")
    
server_cmd("zp_nvg_hum_color_B 0")
    
server_cmd("zp_flare_duration 0")
    
server_cmd("zp_flare_size 0")   
    
server_cmd("zp_lighting a")
    
client_cmd(0"hud_draw 0")
    
server_cmd("sv_voiceenable 0")
    
client_cmd(0"crosshair 0")
    
client_cmd(0"spk sound/weapons/c4_explode1.wav");
    
client_cmd(0"spk sound/fvox/hev_shutdown.wav");
    
set_task(30.0"emp_end"TASK_EMP);
    return 
PLUGIN_CONTINUE;

can you help me with this, and post a link where i can learn how to make conditionals (if, else ,else if) and how to return some data (PLUGIN_HANDLED/CONTINUE) properly?

thanks in advance

Last edited by makiza; 03-12-2011 at 12:19.
makiza 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 14:36.


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