plugins información
#1
hola me ayudan

me sale ese error

el otro problema que solo me da la información de 1 servidor
me gustaría si me pueden dar una ayuda a que las 2 ip que esten salga la información bien

Código PHP:
#include <amxmodx>
#include <server_query>

#pragma semicolon 1

#define PLUGIN_NAME "Servers Hud"
#define PLUGIN_AUTHOR "exo"

#define SZPREFIX "!g[SERVER]!y"

new const SERVERS_IP[][] =
{
    
    
"131.43.32.4253"
    "233.343.44.2341"
};

new 
g_server_name[32][256];
new 
g_server_map[32][32];
new 
g_server_maxplayers[32];
new 
g_server_online_players[32];


public 
plugin_init()
{
    
register_plugin(PLUGIN_NAMEAMXX_VERSION_STRPLUGIN_AUTHOR);

    
register_event("HLTV""event_HLTV""a""1=0""2=0");
}

public 
event_HLTV()
{
    new 
i;
    for (
0sizeof(SERVERS_IP); i++)
    {
        
ServerInfo(SERVERS_IP[i], "getServerInfo");
    }

    
set_task(1.0"task_ShowServers");
}

public 
task_ShowServers(id)
{
    new 
isBuffer[256];
    for (
0sizeof(SERVERS_IP); i++)
    {
        
formatex(sBuffercharsmax(sBuffer), "%s [%s] (%d/%d)"g_server_name[i], g_server_map[i], g_server_online_players[i], g_server_maxplayers[i]);
        
        
set_hudmessage(000100255, -1.00.0500.010.00.50.101);
        
show_hudmessage(idsBuffer);
    }
}

/* Código de Neee...eeel.- (Community Info) */
public getServerInfo(const szServer[], _A2A_TYPE, const Response[], lensuccesslatency)
{
    if (!
success)
    {
        return;
    }
    
    new 
serverId = -1;
    for (new 
0sizeof(SERVERS_IP); i++)
    {
        if (
equal(SERVERS_IP[i], szServer))
        {
            
serverId i;
            break;
        }
    }
    
    if (
serverId == -1)
    {
        return;
    }
    
    new 
szName[256], szMap[64], szDirectory[64], szDescription[64];
    new 
iPlayers 0;
    new 
iMaxPlayers 0;

    
ServerResponseParseInfo(ResponseszNamecharsmax(szName), szMapcharsmax(szMap), szDirectorycharsmax(szDirectory), szDescriptioncharsmax(szDescription), iPlayersiMaxPlayers);
    
    
copy(g_server_name[serverId], charsmax(g_server_name[]), szName);
    
copy(g_server_map[serverId], charsmax(g_server_map[]), szMap);
    
g_server_online_players[serverId] = iPlayers;
    
g_server_maxplayers[serverId] = iMaxPlayers;


AMX Mod X Compiler 1.8.3-dev+5201
Copyright © 1997-2006 ITB CompuPhase
Copyright © 2004-2013 AMX Mod X Team

Error: Undefined symbol "ServerInfo" on line 35
Error: Undefined symbol "ServerResponseParseInfo" on line 80
Error: Number of arguments does not match definition on line 80
Error: Number of arguments does not match definition on line 80
Error: Too many error messages on one line on line 80

Compilation aborted.
5 Errors.
Could not locate output file C:\Users\yoo\Desktop\informacion.amx (compile failed).
Responder
#2
Lo testie en amxmodx 1.9 y fijate que compila, pero esto corregi.

Código:
new const SERVERS_IP[][] =
{
    
    "131.43.32.4253"
    "233.343.44.2341"
};

---------------------------->

Código:
new const SERVERS_IP[][] =
{
    
    "131.43.32.4253", //comilla :V
    "233.343.44.2341"
};
Responder
#3
AMX Mod X Compiler 1.9.0.5271
Copyright © 1997-2006 ITB CompuPhase
Copyright © 2004-2013 AMX Mod X Team

Error: Undefined symbol "ServerInfo" on line 36
Error: Undefined symbol "ServerResponseParseInfo" on line 81
Error: Number of arguments does not match definition on line 81
Error: Number of arguments does not match definition on line 81
Error: Too many error messages on one line on line 81

Compilation aborted.
5 Errors.
Could not locate output file C:\Users\yoo\Desktop\informacion.amx (compile failed).
Responder
#4
a mi me funca, instalate el amxmodx 1.9
Responder
#5
ya lo probare dsp pero te fijaste al poner las 2 ip saliara la informacion de los 2 ? porque el problema que tenia que ponia las 2 ip y sola dejaba la informacion de 1

avisame porfa
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)