bueno soi breve dejo errores (con debug y todo) y las lineas
Code:
L 12/21/2009 - 20:52:57: Start of error session.
L 12/21/2009 - 20:52:57: Info (map "nth_lets_take_mothers_tank") (file "addons/amxmodx/logs/error_20091221.log")
L 12/21/2009 - 20:52:57: Invalid player id 0
L 12/21/2009 - 20:52:57: [AMXX] Displaying debug trace (plugin "zombie_plague_78.amxx")
L 12/21/2009 - 20:52:57: [AMXX] Run time error 10: native error (native "get_user_info")
L 12/21/2009 - 20:52:57: [AMXX] [0] zombie_plague_78.sma::fm_get_user_model (line 9782)
L 12/21/2009 - 20:52:57: [AMXX] [1] zombie_plague_78.sma::zombieme (line 5960)
L 12/21/2009 - 20:52:57: [AMXX] [2] zombie_plague_78.sma::make_a_zombie (line 5663)
L 12/21/2009 - 20:52:57: [AMXX] [3] zombie_plague_78.sma::make_zombie_task (line 5279)
1er error (get_user_info)
PHP Code:
// Get User Model -model passed byref-
stock fm_get_user_model(player, model[], len)
{
get_user_info(player, "model", model, len)
}
2do error linea 9782
PHP Code:
get_user_info(player, "model", model, len)
3er error linea 5960
PHP Code:
// Get current model and compare it with current one
fm_get_user_model(id, currentmodel, sizeof currentmodel - 1)
4to error linea 5663
PHP Code:
else if ((mode == MODE_NONE && (!preventconsecutive || g_lastmode != MODE_ASSASSIN) && random_num(1, get_pcvar_num(cvar_asschance)) == get_pcvar_num(cvar_ass) && iPlayersnum >= get_pcvar_num(cvar_assminplayers)) || mode == MODE_ASSASSIN)
{
//Blade Mode
g_nemround = true
g_assassinround = true
g_lastmode = MODE_ASSASSIN
// Remember id for calling our forward later
forward_id = id
// MAKE Assassin
g_assassin[id] = true
zombieme(id, 0, 1, 0) // esta es la linea del error :\
server_cmd("amx_show_activity 0")
server_cmd("zp_leap_nemesis_force 750")
server_cmd("zp_leap_nemesis_height 300")
server_cmd("zp_nvg_nem_color_R 120")
server_cmd("zp_nvg_nem_color_G 0")
server_cmd("zp_nvg_nem_color_B 200")
server_cmd("amx_show_activity 2")
// FINISH Assassin
// Turn the rest of players into survivors
for (id = 1; id <= g_maxplayers; id++)
{
// Not alive
if (!is_user_alive(id))
continue;
// Survivor or already a zombie
if (g_nemesis[id] || g_raptor[id])
continue;
// Turn into a zombie
humanme(id, 1)
}
// Play plague sound
PlaySound(sound_plague[random_num(0, sizeof sound_plague -1)]);
// Show Plague HUD notice
set_hudmessage(0, 50, 200, HUD_EVENT_X, HUD_EVENT_Y, 1, 0.0, 5.0, 1.0, 1.0, -1)
ShowSyncHudMsg(0, g_MsgSync, "Modo Assassin !!!")
// Round start forward
ExecuteForward(g_fwRoundStart, g_fwDummyResult, MODE_ASSASSIN, 0);
}
else
{
// Single Infection Mode or Nemesis Mode
// Choose player randomly?
if (mode == MODE_NONE)
id = fnGetRandomAlive(random_num(1, iPlayersnum))
// Remember id for calling our forward later
forward_id = id
5to y 6to error
PHP Code:
// Make Zombie Task
public make_zombie_task() // este es el 6to error, aca me tira el problema
{
// Call make a zombie with no specific mode
make_a_zombie(MODE_NONE, 0) // y aca el 5to
}
bueno qeria ver si alguno me puede ayudar a solucionarlos
__________________