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