Allied Modders en español
tema error - Versión para impresión

+- Allied Modders en español (https://amxmodx-es.com)
+-- Foro: Basurero (https://amxmodx-es.com/Forum-Basurero)
+--- Foro: El Tacho (https://amxmodx-es.com/Forum-El-Tacho)
+--- Tema: tema error (/Thread-tema-error)



tema error - kakashi - 13/06/2019

L 06/13/2019 - 16:32:44: Start of error session.
L 06/13/2019 - 16:32:44: Info (map "zpl_cartoons_b3") (file "addons/amxmodx/logs/error_20190613.log")
L 06/13/2019 - 16:32:44: Player 8 is not ingame
L 06/13/2019 - 16:32:44: [AMXX] Displaying debug trace (plugin "zombie_apocalypse46.amxx")
L 06/13/2019 - 16:32:44: [AMXX] Run time error 10: native error (native "player_menu_info")
L 06/13/2019 - 16:32:44: [AMXX] [0] zombie_apocalypse46-5-1.sma::menu_player_list (line 8155)

// Player List Menu
public menu_player_list(id, menuid, item)
{
// Not enough modes to send
if (g_modescount[id] < 1)
{
zp_colored_print(id, "^x04[ZA]^x01 Agotaste el máximo de modos que puedes enviar.")
return PLUGIN_HANDLED;
}

// Remember player's menu page
static menudummy
player_menu_info(id, menudummy, menudummy, MENU_PAGE_PLAYERS) linea de error

// Menu was closed
if (item == MENU_EXIT)
{
show_menu_admin(id)
return PLUGIN_HANDLED;
}
// Get admin flags
static userflags; userflags = get_user_flags(id)

// Retrieve player id
static buffer[2], dummy, playerid
menu_item_getinfo(menuid, item, dummy, buffer, charsmax(buffer), _, _, dummy)
playerid = buffer[0]

// Make sure it's still connected
if (g_isconnected[playerid])
{
// Perform the right action if allowed
switch (PL_ACTION)
{
case 0: // Zombiefy/Humanize command
{
if (userflags & g_access_flag[ACCESS_START_MODES])
{
if (g_class[playerid] >= ZOMBIE)
{
if (allowed_human(playerid))
command_onplayer(id, playerid, 1)
}
else
{
if (allowed_zombie(playerid))
command_onplayer(id, playerid, 0)
}
}
else
zp_colored_print(id, "^x04[ZA]^x01 No tienes acceso a esa opción.")
}
case 1: // Nemesis command
{
if (userflags & g_access_flag[ACCESS_START_MODES])
{
if (allowed_nemesis(playerid))
command_onplayer(id, playerid, 2)
}
else
zp_colored_print(id, "^x04[ZA]^x01 No tienes acceso a esa opción.")
}
case 2: // Alien command
{
if (userflags & g_access_flag[ACCESS_START_MODES])
{
if (allowed_alien(playerid))
command_onplayer(id, playerid, 3)
}
else
zp_colored_print(id, "^x04[ZA]^x01 No tienes acceso a esa opción.")
}
case 3: // Survivor command
{
if (userflags & g_access_flag[ACCESS_START_MODES])
{
if (allowed_survivor(playerid))
command_onplayer(id, playerid, 4)
}
else
zp_colored_print(id, "^x04[ZA]^x01 No tienes acceso a esa opción.")
}
case 4: // Wesker command
{
if (userflags & g_access_flag[ACCESS_START_MODES])
{
if (allowed_wesker(playerid))
command_onplayer(id, playerid, 5)
}
else
zp_colored_print(id, "^x04[ZA]^x01 No tienes acceso a esa opción.")
}
case 5: // Respawn command
{
if (userflags & g_access_flag[ACCESS_RESPAWN_PLAYERS])
{
if (allowed_respawn(playerid))
command_onplayer(id, playerid, 6)
}
else
zp_colored_print(id, "^x04[ZA]^x01 No tienes acceso a esa opción.")
}
}
}

show_menu_player_list(id)
return PLUGIN_HANDLED;
}


RE: tema error - Valentina. - 14/06/2019

Hola, te invito a leer las foro del foro neudis.

Está prohibido el uso de múltiples cuentas.

Saludos. Crab