Allied Modders en español

Versión completa: error 1
Actualmente estas viendo una versión simplificada de nuestro contenido. Ver la versión completa con el formato correcto.
06/11/2019 - 19:13:29: [AMXX] Run time error 10: native error (native "player_menu_info")
L 06/11/2019 - 19:13:29: [AMXX] [0] zombie_apocalypse46-5-1.sma::menu_player_list (line 8158)
------------------------------------------------------------------------------------------------------------------------------------------
linea de error menu_player_list
// 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 8158

// 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;
}