Error al compilar statspug
#1
Buenas, tengo este plugin en mi comunidad LvS, pero me da este error al compilar:

Error: Undefined symbol "PugGetRoundWinTeam" on line 208
Error: Undefined symbol "PugGetRoundWinTeam" on line 209

Les dejo el code, agradecería la ayuda de antemano!:
Código PHP:
#include <amxmodx>
#include <csx>
#include <pug>
#include <hamsandwich>
#include <fakemeta>
#include <sqlx>
#include <steamdata>

#define SQLX_DATABASE        "pug_mod"
#define SQLX_TABLA            "statspug"

#define COLUMN_AUTHID         "authid"
#define COLUMN_NAME         "name"
#define COLUMN_KILLS         "Kills"
#define COLUMN_DEATHS         "deaths"
#define COLUMN_HEADSHOTS     "headshots"
#define COLUMN_BOMBPLANTEDS "bombplanteds"
#define COLUMN_BOMBDEFUSED     "bombdefuseds"
#define COLUMN_DAMAGES         "damages"
#define COLUMN_ROUNDS         "rounds"
#define COLUMN_PUGS         "pugs"

#define TOP_STYLE "<style>@import url(^"http://cs-lgesport.tk/css/style_cs/csstats_style.css^");</style>"

enum _:DATA_PLAYERS {
    
Kills,
    
Deaths,
    
HeadShots,
    
BombPlanteds,
    
BombDefuseds,
    
Float:Damages,
    
Rounds,
    
Pugs
}
enum _:ADV_DATA {
    
iniciar 0
    
Cargar
    
Guardar 
};

new 
g_szTag[]="^4[TAG]^1";
new 
g_szPlayerName[MAX_PLAYERS+1][32];
new 
g_szPlayerAuthdID[MAX_PLAYERS+1][64];
new 
g_PlayerData[MAX_PLAYERS+1][DATA_PLAYERS];
new 
g_iMaxPlayers;
new 
Float:g_flHealth;

new 
Handle:g_query;
new 
Handle:g_tuple;

public 
plugin_init() {
    
register_plugin("AMXX - Stats Pug""v1.3""Alejandro-.");

    
register_clcmd("say""hooksay");
    
RegisterHamPlayer(Ham_TakeDamage"OnPlayerTakeDamage_Pre", .Post false);
    
RegisterHamPlayer(Ham_TakeDamage"OnPlayerTakeDamage_Post", .Post true);
    
register_event("DeathMsg""DeathMsg""a");
    
register_pug_event(ROUND_START"EventPugRoundStart");
    
register_pug_event(PUG_END"EventPugEnd");
    
register_pug_event(PUG_START"EventPugStart");
    
g_iMaxPlayers get_maxplayers();
    
SQLXInit();
}
public 
hooksay(index) {
    static 
said[192]; 
    
read_args(saidcharsmax(said)); 
    
remove_quotes(said);

    if (
equal(said".top")) {
        
CmdTop(index);
        return 
PLUGIN_HANDLED;
    }
    else if (
equal(said".stats")) {
        
DisplayMenuStats(index);
        return 
PLUGIN_HANDLED;
    }
    return 
PLUGIN_CONTINUE;
}
public 
DisplayMenuStats(index) {
    if (!
is_user_connected(index))
        return ;

    new 
menu menu_create(fmt("[LvS]\w Lista de Jugadores"), "h_listplayers");
    
menu_additem(menu"\yVer mis estadisticas^n"fmt("%d"index));

    for(new 
1<=g_iMaxPlayersi++) {
        if (
is_user_bot(i))
            continue;
        if (
is_user_hltv(i))
            continue;

        if (
is_user_connected(i) && index != i) {
            new 
szName[32];
            
get_user_name(iszNamecharsmax(szName));
            
menu_additem(menuszNamefmt("%d"i));
        }
    }
    
menu_setprop(menuMPROP_NEXTNAME"Siguiente");
    
menu_setprop(menuMPROP_BACKNAME"Anterior");
    
menu_setprop(menuMPROP_EXITNAME"Salit");
    
menu_display(indexmenu);
}

public 
h_listplayers(indexmenuitem) {
    if (
item == MENU_EXIT) {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
    if (
item != 0) {
        new 
szInfo[5];
        
menu_item_getinfo(menuitem_szInfocharsmax(szInfo), _);
        new 
target str_to_num(szInfo);

        if (!
is_user_connected(target)) {
            
client_print_color(0print_team_default"%s El jugador no esta conectado"g_szTag);
            return 
PLUGIN_HANDLED;
        }

        
client_print_color(0print_team_default"%s ^3%n^1 esta viendo las estadisticas de ^3%n"g_szTagindextarget);
        
DisplayPlayerStats(indextarget);
    } else {
        
DisplayPlayerStats(indexindex);
    }
    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;
}
public 
client_putinserver(index) {
    if (!
is_user_connected(index))    
    return;

    for(new 
0<sizeof(g_PlayerData[]); i++) {
        
g_PlayerData[index][i] = EOS;
    }

    
get_user_authid(indexg_szPlayerAuthdID[index], charsmax(g_szPlayerAuthdID[]));
    
get_user_name(indexg_szPlayerName[index], charsmax(g_szPlayerName[]))
    
PlayerRegister(index);
}
public 
OnPlayerTakeDamage_PreviaFloat:flDamageiDamageBits ) {
    if (
pug_get_state() != ALIVE
    return;

    
pev(vpev_healthg_flHealth);
}
public 
OnPlayerTakeDamage_PostviaFloat:flDamageiDamageBits ) {
    if (
pug_get_state() != ALIVE
    return;

    new 
Float:flDmgTake;
    
pev(vpev_dmg_takeflDmgTake);

    new 
Float:flRealDamage floatmin(flDmgTakeg_flHealth);
    
g_PlayerData[a][Damages] += flRealDamage;
}
public 
DeathMsg() {
    new 
Attack read_data(1);
    new 
Victim read_data(2);
    new 
Headshot read_data(3);

    if (!
is_user_connected(Attack) || !is_user_connected(Victim))
    return;    

    if (
Attack == Victim) {
        
g_PlayerData[Attack][Kills]--;
        
g_PlayerData[Attack][Deaths]++;
        return;
    }

    if (
Headshot) {
        
g_PlayerData[Attack][HeadShots]++;
    }

    
g_PlayerData[Attack][Kills]++;
    
g_PlayerData[Victim][Deaths]++;
}
public 
bomb_planted(index) {
    if (!
is_user_connected(index))    
    return;
    
g_PlayerData[index][BombPlanteds]++;
}
public 
bomb_defused(index) {
    if (!
is_user_connected(index))    
    return;
    
g_PlayerData[index][BombDefuseds]++;
}
/************************* EVENTOS DEL PUG *************************/
public EventPugRoundStart() {
    if (
pug_get_state() != ALIVE
    return;

    for(new 
index 1index <=g_iMaxPlayersindex++) {
        if (
is_user_connected(index) && (1<=get_user_team(index)<=2)) {
            
g_PlayerData[index][Rounds]++;
        }
    }
}
public 
EventPugStart() {
    for(new 
index 1index <=g_iMaxPlayersindex++) {
        for(new 
0<sizeof(g_PlayerData[]); i++) {
            if (
is_user_connected(index) && (1<=get_user_team(index)<=2)) {
                
g_PlayerData[index][i] = EOS;
            }
        }
    }
}
public 
EventPugEnd(WinState) {
    new 
szMotd[2000], szMapName[64], iLeniPosition;
    new 
iRoundsCT PugGetRoundWinTeam(CS_TEAM_CT);
    new 
iRoundsTT PugGetRoundWinTeam(CS_TEAM_T);

    switch (
WinState) {
        case 
1: {
            
iRoundsTT++;
        }
        case 
2: {
            
iRoundsCT++;
        }
    }
    
get_mapname(szMapNamecharsmax(szMapName));
    
iLen += formatexszMotdiLen ], sizeof szMotd iLen,
        
"<body>%s\
        <h4>Estadisticas | %s</h>\
        <h3 class=ct>Counter-Terroristas: <span>%i</span></h3><table>\
        <tr>\
        <th width=5%%>#\
        <th width=30%%>Nombre\
        <th width=10%%>K\
        <th width=10%%>HS\
        <th width=10%%>D"
TOP_STYLEszMapNameiRoundsCT);
    new 
szAuthID[64];
    new 
players[32], iPlayers;
    
get_players(playersiPlayers"e""CT");
    for(new 
index 0index <iPlayersindex++) {
        
get_user_authid(indexszAuthIDcharsmax(szAuthID));
        
replace_all(szAuthIDcharsmax(szAuthID), ":""_");
        
iPosition++;
        
iLen += formatexszMotdiLen ], sizeof szMotd iLen"<tr align=center>" );
        
iLen += formatexszMotdiLen ], sizeof szMotd iLen"<td>%i"iPosition );
        
iLen += formatexszMotdiLen ], sizeof szMotd iLen"<td>%n"players[index]);
        
iLen += formatexszMotdiLen ], sizeof szMotd iLen"<td>%i"g_PlayerData[players[index]][Kills]);
        
iLen += formatexszMotdiLen ], sizeof szMotd iLen"<td>%i"g_PlayerData[players[index]][HeadShots]);
        
iLen += formatexszMotdiLen ], sizeof szMotd iLen"<td>%i"g_PlayerData[players[index]][Deaths]);
    } 
    
iLen += formatexszMotdiLen ], sizeof szMotd iLen,
        
"</table><h3 class=tt>Terroristas: <span>%i</span></h3><table>\
        <tr class=rtt>\
        <th width=5%%>#\
        <th width=30%%>Nombre\
        <th width=10%%>K\
        <th width=10%%>HS\
        <th width=10%%>D"
iRoundsTT);

    
iPosition 0;
    
get_players(playersiPlayers"e""TERRORIST");
    for(new 
index 0index <iPlayersindex++) {
        
get_user_authid(indexszAuthIDcharsmax(szAuthID));
        
replace_all(szAuthIDcharsmax(szAuthID), ":""_");
        
iPosition++;
        
iLen += formatexszMotdiLen ], sizeof szMotd iLen"<tr align=center>" );
        
iLen += formatexszMotdiLen ], sizeof szMotd iLen"<td>%i"iPosition );
        
iLen += formatexszMotdiLen ], sizeof szMotd iLen"<td>%n"players[index]);
        
iLen += formatexszMotdiLen ], sizeof szMotd iLen"<td>%i"g_PlayerData[players[index]][Kills]);
        
iLen += formatexszMotdiLen ], sizeof szMotd iLen"<td>%i"g_PlayerData[players[index]][HeadShots]);
        
iLen += formatexszMotdiLen ], sizeof szMotd iLen"<td>%i"g_PlayerData[players[index]][Deaths]);
    } 
    
iLen += formatexszMotdiLen ], sizeof szMotd iLen"</table></body>" );
    for(new 
index 1index <=g_iMaxPlayersindex++) {
        if (
is_user_connected(index) && (1<=get_user_team(index)<=2)) {
            
g_PlayerData[index][Pugs]++;
            
SaveGlobalPlayerData(index);
            
show_motd(indexszMotd"Mod PUG v1.1 | Estadisticas de mapa");
        }
    }
}
/********************* SQLX GUARD ***********************************/
public SQLXInit()
{
    new 
get_type[12]
    
SQL_SetAffinity("sqlite"
    
SQL_GetAffinity(get_typesizeof(get_type)) 
    if (!
equali(get_type"sqlite")) 
    {
        
log_to_file("SQLX.log""Driver no encontrado")
        
pause("a")
    }
    else
    {
        static 
errorszError[300]
        
g_query SQL_MakeDbTuple(""""""SQLX_DATABASE)
        
g_tuple SQL_Connect(g_queryerrorszError300)
        if (
strlen(szError))
        {
            
log_to_file("ErrorSQL.log"szError)
            
pause("a")
        }
        
CheckTabla();
    }
}
public 
CheckTabla() {
    new 
szTemp[768]
    
formatex(szTempcharsmax(szTemp), "\
        CREATE TABLE IF NOT EXISTS %s (`%s` varchar(33) NOT NULL default '' PRIMARY KEY, `%s` varchar(33),`%s` int,`%s` int,`%s` int,`%s` int,`%s` int,`%s` float, `%s` int, `%s` int)"
,
        
SQLX_TABLACOLUMN_AUTHIDCOLUMN_NAMECOLUMN_KILLSCOLUMN_DEATHSCOLUMN_HEADSHOTSCOLUMN_BOMBPLANTEDSCOLUMN_BOMBDEFUSEDCOLUMN_DAMAGESCOLUMN_ROUNDSCOLUMN_PUGS)
    
g_query SQL_PrepareQuery(g_tupleszTemp)
    if (
SQL_Execute(g_query)) {
        
server_print("Se realizo el registro")
    }
    else 
server_print("Error en el registro")
}
public 
PlayerRegister(index) {
    if(!
is_user_connected(index) || is_user_bot(index) || is_user_hltv(index)) 
        return;

    new 
szTemp[2048];
    
formatex(szTempcharsmax(szTemp), "INSERT INTO %s (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) VALUES ('%s','%s','0','0','0','0','0','0.0','0','0')",
        
SQLX_TABLA,
        
COLUMN_AUTHID,
        
COLUMN_NAME,
        
COLUMN_KILLS,
        
COLUMN_DEATHS,
        
COLUMN_HEADSHOTS,
        
COLUMN_BOMBPLANTEDS,
        
COLUMN_BOMBDEFUSED,
        
COLUMN_DAMAGES,
        
COLUMN_ROUNDS,
        
COLUMN_PUGS,
        
g_szPlayerAuthdID[index],
        
g_szPlayerName[index]);
    
g_query SQL_PrepareQuery(g_tupleszTemp);
    if (
SQL_Execute(g_query)){
        
console_print(index"No se encontro resultados, creando nuevos datos...");
    } else 
console_print(index"Error al registrar");
}
public 
SaveGlobalPlayerData(index) {
    if(!
is_user_connected(index) || is_user_bot(index) || is_user_hltv(index)) 
        return;

    new 
szTemp[256];
    
formatex(szTempcharsmax(szTemp), "SELECT * FROM %s WHERE ^"%s^" = ^"%s^""SQLX_TABLACOLUMN_AUTHIDg_szPlayerAuthdID[index]);
    
g_query SQL_PrepareQuery(g_tuple,szTemp);

    if (
SQL_Execute(g_query)) {
        new 
iKills SQL_ReadResult(g_query2);
        new 
iDeaths SQL_ReadResult(g_query3);
        new 
iHeadShots SQL_ReadResult(g_query4);
        new 
iBombPlanteds SQL_ReadResult(g_query5);
        new 
iBombDefused SQL_ReadResult(g_query6);
        new 
Float:flDamage;
        
SQL_ReadResult(g_query7flDamage);
        new 
iRounds SQL_ReadResult(g_query8);    
        new 
iPugs SQL_ReadResult(g_query9);        

        
formatex(szTempcharsmax(szTemp), "UPDATE %s SET `%s`=^"%s^",`%s`=^"%i^",`%s`=^"%i^",`%s`=^"%i^",`%s`=^"%i^",`%s`=^"%i^",`%s`=^"%0.02f^",`%s`=^"%i^", `%s`=^"%i^" WHERE %s = ^"%s^"",
            
SQLX_TABLA,
            
COLUMN_NAME,
            
g_szPlayerName[index],
            
COLUMN_KILLS,
            
iKills g_PlayerData[index][Kills],
            
COLUMN_DEATHS,
            
iDeaths g_PlayerData[index][Deaths],
            
COLUMN_HEADSHOTS,
            
iHeadShots g_PlayerData[index][HeadShots],
            
COLUMN_BOMBPLANTEDS,
            
iBombPlanteds g_PlayerData[index][BombPlanteds],
            
COLUMN_BOMBDEFUSED,
            
iBombDefused g_PlayerData[index][BombDefuseds],
            
COLUMN_DAMAGES,
            
flDamage g_PlayerData[index][Damages],
            
COLUMN_ROUNDS,
            
iRounds g_PlayerData[index][Rounds],
            
COLUMN_PUGS,
            
iPugs g_PlayerData[index][Pugs],
            
COLUMN_AUTHID,
            
g_szPlayerAuthdID[index]);
        
g_query SQL_PrepareQuery(g_tupleszTemp);
        if(
SQL_Execute(g_query)) console_print(index"Datos Actualizados");
        else 
console_print(index"Error Actualizar datos");
    }

public 
CmdTop(index) {
    new 
szTemp[256];
    
formatex(szTempcharsmax(szTemp), "SELECT * FROM %s ORDER BY `%s`-`%s` DESC LIMIT 10"SQLX_TABLACOLUMN_KILLSCOLUMN_DEATHS);
    
g_query SQL_PrepareQuery(g_tupleszTemp);
    if (
SQL_Execute(g_query)) {
        if(
SQL_NumResults(g_query)) {
            new 
szMotd[1800], iLeniPosition;
            
iLen += formatexszMotdiLen ], sizeof szMotd iLen,
                
"<body>%s\
                <h4>GOT Pug | Top 10</h4>\
                <table>\
                <tr>\
                <th width=5%%>#\
                <th width=30%%>Nombre\
                <th width=10%%>K\
                <th width=10%%>HS\
                <th width=10%%>D\
                <th width=20%%>DMG\
                <th width=20%%>ADR"
TOP_STYLE);
            while(
SQL_MoreResults(g_query)) {
                new 
szName[32], szAuthID[64];
                
SQL_ReadResult(g_query0szAuthIDcharsmax(szAuthID));
                
SQL_ReadResult(g_query1szNamecharsmax(szName));
                new 
iKills SQL_ReadResult(g_query2);
                new 
iDeaths SQL_ReadResult(g_query3);
                new 
iHeadShots SQL_ReadResult(g_query4);
                new 
Float:flDamage;
                
SQL_ReadResult(g_query7flDamage);
                new 
iRounds SQL_ReadResult(g_query8);
                
replace_all(szAuthIDcharsmax(szAuthID), ":""_");

                
iPosition++;
                
iLen += formatexszMotdiLen ], sizeof szMotd iLen"<tr align=center>" );
                
iLen += formatexszMotdiLen ], sizeof szMotd iLen"<td>%i"iPosition );
                
iLen += formatexszMotdiLen ], sizeof szMotd iLen"<td>%s"szName);
                
iLen += formatexszMotdiLen ], sizeof szMotd iLen"<td>%i"iKills);
                
iLen += formatexszMotdiLen ], sizeof szMotd iLen"<td>%i"iHeadShots);
                
iLen += formatexszMotdiLen ], sizeof szMotd iLen"<td>%i"iDeaths);
                
iLen += formatexszMotdiLen ], sizeof szMotd iLen"<td>%0.02f"flDamage);
                
iLen += formatexszMotdiLen ], sizeof szMotd iLen"<td>%0.02f"flDamage float(iRounds));
                
SQL_NextRow(g_query);
            } 
            
iLen += formatexszMotdiLen ], sizeof szMotd iLen"</table></body>" );
            
show_motd(indexszMotd"Mod PUG v1.1 | TOP 10");
        }
    }
}
public 
DisplayPlayerStats(indextarget) {
    if (!
is_user_connected(index))
        return;

    if (!
is_user_connected(target)) {
        
client_print_color(indexprint_team_default"%s El usuario no esta conectado"g_szTag);
        return;
    }

    new 
szTemp[256]
    
formatex(szTempcharsmax(szTemp), "SELECT * FROM %s WHERE ^"%s^" = ^"%s^""SQLX_TABLACOLUMN_AUTHIDg_szPlayerAuthdID[target]);
    
g_query SQL_PrepareQuery(g_tuple,szTemp);

    if (
SQL_Execute(g_query)) {
        new 
iKills SQL_ReadResult(g_query2);
        new 
iDeaths SQL_ReadResult(g_query3);
        new 
iHeadShots SQL_ReadResult(g_query4);
        new 
iBombPlanteds SQL_ReadResult(g_query5);
        new 
iBombDefused SQL_ReadResult(g_query6);
        new 
Float:flDamage;
        
SQL_ReadResult(g_query7flDamage);
        new 
iRounds SQL_ReadResult(g_query8);    
        new 
iPlayingPugs SQL_ReadResult(g_query9);

        new 
szAvatar[130];
        
get_steamdata(targetszAvatarcharsmax(szAvatar), STD_AVATAR_FULL)
        new 
szMotd[1836], iLen 0;
        
iLen += formatex(szMotd[iLen], sizeof szMotd iLen"<body>%s"TOP_STYLE);
        
iLen += formatex(szMotd[iLen], sizeof szMotd iLen"<div class=top><h1>PERFIL</h1></br><img src=%s class=av2><h4>%n</h4>"szAvatartarget);
        
iLen += formatex(szMotd[iLen], sizeof szMotd iLen"</div><div class=bottom>\
            <h1>ESTADISTICAS</h1>\
            </br>\
            <table width=100%%>\
            <tr align=center>\
            <th width=33%%>Kills\
            <th width=33%%>HeadShots\
            <th width=33%%>Deaths"
);
        
iLen += formatexszMotdiLen ], sizeof szMotd iLen"\
            <tr align=center>\
            <td>%i\
            <td>%i\
            <td>%i"
iKillsiHeadShots,  iDeaths);
        
iLen += formatexszMotdiLen ], sizeof szMotd iLen"</table><table width=100%%>\
            <tr align=center>\
            <th width=25%%>BP\
            <th width=25%%>BD\
            <th width=20%%>Damage\
            <th width=30%%>ADR"
);
        
iLen += formatexszMotdiLen ], sizeof szMotd iLen"\
            <tr align=center>\
            <td>%i\
            <td>%i\
            <td>%0.02f\
            <td>%0.02f"
iBombPlantedsiBombDefusedflDamageflDamage float(iRounds));
        
iLen += formatexszMotdiLen ], sizeof szMotd iLen"</table><table width=100%%>\
            <tr align=center>\
            <th width=25%%>Pugs Jugados:" 
);
        
iLen += formatexszMotdiLen ], sizeof szMotd iLen"\
            <tr align=center>\
            <td>%i</table>"
iPlayingPugs);
        
iLen += formatexszMotdiLen ], sizeof szMotd iLen"</div></br>" );
        
iLen += formatexszMotdiLen ], sizeof szMotd iLen"</body>" );
        
show_motdindexszMotdfmt"AMXX-STATS | %n"target));
    }

Responder
#2
xd Como regan mi contenido tan feo. F
Responder
#3
._. A pos no se we ese code lo saque de la PC de un compa xd
1
Responder
#4
capaz te falta algun include
Responder
#5
(19/07/2022, 02:28 AM)samuelt escribió: ._. A pos no se we ese code lo saque de la PC de un compa xd

Jajajajajajajasjas
"Cada golpe es una lección, y cada lección te hace mejor."

[Imagen: b_350_20_000000_8a7300_ffffff_eeff00.png]
[Imagen: 76561198371193937.png]
Responder
#6
por lo visto no existe

(18/07/2022, 10:07 PM)samuelt escribió: Error: Undefined symbol "PugGetRoundWinTeam" on line 208

Nomedigas
Responder
#7
(19/07/2022, 10:24 AM)Nelo escribió: capaz te falta algun include

Tengo todos los includes Whatever y igual no compilaxd

(19/07/2022, 11:02 AM)rojedafeik escribió: Jajajajajajajasjas

Obviamente con su consentimiento xd yo le dije y el me autorizo
Responder
#8
dices que sacaste el sma de la pc de alguien... entonces no tienes la fuente donde viene completo A ysi
Responder
#9
Osea, si tengo todo y no de alguien porque ese alguien es amigo mio y claro autorizad, de hecho lo tenia en una carpeta donde estaban sus respectivos includes..
Responder
#10
Corazón 
(19/07/2022, 10:34 PM)samuelt escribió: Osea, si tengo todo y no de alguien porque ese alguien es amigo mio y claro autorizad, de hecho lo tenia en una carpeta donde estaban sus respectivos includes..

Agrega este include debajo de los demás includes
Código PHP:
#include <reapi> 

y coloca esto al final de todo el código
Código PHP:
stock PugGetRoundWinTeam(CsTeams:team)
{
    switch(
team)
    {
        case 
CS_TEAM_CT: return(get_member_game(m_iNumCTWins))
        case 
CS_TEAM_T: return(get_member_game(m_iNumTerroristWins))
    }

Responder
#11
(20/07/2022, 11:45 AM)[N]drs escribió: Agrega este include debajo de los demás includes
Código PHP:
#include <reapi> 

y coloca esto al final de todo el código
Código PHP:
stock PugGetRoundWinTeam(CsTeams:team)
{
 switch(
team)
 {
 case 
CS_TEAM_CT: return(get_member_game(m_iNumCTWins))
 case 
CS_TEAM_T: return(get_member_game(m_iNumTerroristWins))
 }




Compilo, pero me lanzo 1 Warning xd hay algún inconveniente con eso? De todas formas haré pruebas y digo muchas Gracias <3
Responder
#12
(20/07/2022, 11:06 PM)samuelt escribió: Compilo, pero me lanzo 1 Warning xd hay algún inconveniente con eso? De todas formas haré pruebas y digo muchas Gracias <3

y cual es el warning?
Responder
#13
(20/07/2022, 11:07 PM)[N]drs escribió: y cual es el warning?

Me dijo "1 Warning" pero ni idea acabo de probarlo y me lanzo este error: L 07/20/2022 - 22:07:34: [AMXX] Plugin "statspug.amxx" failed to load: Plugin uses an unknown function (name "get_steamdata") - check your modules.ini.
Responder
#14
(20/07/2022, 11:13 PM)samuelt escribió: Me dijo "1 Warning" pero ni idea acabo de probarlo y me lanzo este error: L 07/20/2022 - 22:07:34: [AMXX] Plugin "statspug.amxx" failed to load: Plugin uses an unknown function (name "get_steamdata") - check your modules.ini.

Si no estoy mal, creo que te falta es esto: https://amxmodx-es.com/Thread-SDT-Steam-data-info
Responder
#15
(20/07/2022, 11:47 PM)Asta escribió: Si no estoy mal, creo que te falta es esto: https://amxmodx-es.com/Thread-SDT-Steam-data-info

Efectivamente, faltaba eso y el modulo curl ahora me faltaria hacer pruebas xd Muchas gracias <3

Bueno, ahora me lanza este error: L 07/20/2022 - 23:15:51: [MySQL] Invalid database handle: 0

L 07/20/2022 - 23:15:51: [AMXX] Run time error 10 (plugin "statspugbeta.amxx") (native "SQL_PrepareQuery") - debug not enabled!

L 07/20/2022 - 23:15:51: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

PD: Al entrar a la partido checko para donde se pausa los plugins en el menu "amxmodmenu" y me aparece pausado el plugin es decir en off, lo pongo en ON y me aparece eso porque razon al ejecutar el servidor o reiniciar aparece en OFF automatico? :c Ayuda
Responder
#16
L 07/20/2022 - 23:15:51: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

añadí "debug" a continuación del nombre del plugin junto a su extensión en plugins.ini

ejemplo:

myplugin.amxx debug

Esto no te lo va a solucionar, sin embargo, clarifica el problema en cuestión.
Ingeniero agrónomo y desarrollador de Software.

tutoriales-allied
buscas un zp?

"La imitación es la forma más sincera de admiración con la que puede pagar la mediocridad a la grandeza"

Merci Alliedmodders pour m'introduire dans la programmation.
Responder
#17
(21/07/2022, 12:56 PM)roccoxx escribió: L 07/20/2022 - 23:15:51: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

añadí "debug" a continuación del nombre del plugin junto a su extensión en plugins.ini

ejemplo:

myplugin.amxx debug

Esto no te lo va a solucionar, sin embargo, clarifica el problema en cuestión.

Eso mismo hice, pero sigue poniendo off el plugin al iniciar el servidor con los complementos, manualmente pongo ON y pongo los comandos y no sirve, el ".top" pero pongo ".stats" me arroja el mensaje de que Player esta viendo las estadisticas de tal Player pero no se ve el cuadro de las estadisticas del player ni mis propias estadisticasTriste AYUDA!
Responder
#18
(21/07/2022, 02:00 PM)samuelt escribió: Eso mismo hice, pero sigue poniendo off el plugin al iniciar el servidor con los complementos, manualmente pongo ON y pongo los comandos y no sirve, el ".top" pero pongo ".stats" me arroja el mensaje de que Player esta viendo las estadisticas de tal Player pero no se ve el cuadro de las estadisticas del player ni mis propias estadisticasTriste AYUDA!

Tienes activado el modulo sqlite en modules.ini que esta en la carpeta config? si no es el caso, tienes que activarlo quitandole el ; del comienzo y luego de que guardes el cambio reinicia el servidor y te deberia funcionar.
Responder
#19
(21/07/2022, 03:02 PM)Asta escribió: Tienes activado el modulo sqlite en modules.ini que esta en la carpeta config? si no es el caso, tienes que activarlo quitandole el ; del comienzo y luego de que guardes el cambio reinicia el servidor y te deberia funcionar.

Vale, probare a ver que tal y digo muchas gracias <3

(21/07/2022, 03:02 PM)Asta escribió: Tienes activado el modulo sqlite en modules.ini que esta en la carpeta config? si no es el caso, tienes que activarlo quitandole el ; del comienzo y luego de que guardes el cambio reinicia el servidor y te deberia funcionar.

Hola amigo hice lo que me dijiste pero me sigue arrojando el mismo problema:

L 07/21/2022 - 14:10:51: [SQLITE] No result set in this query!

L 07/21/2022 - 14:10:51: [AMXX] Run time error 10 (plugin "statspugbeta.amxx") (native "SQL_ReadResult") - debug not enabled!

L 07/21/2022 - 14:10:51: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
Responder
#20
tengo la ligera sospecha que cuando lo actives apareceran mil bugs mas Whatever
Responder
#21
(21/07/2022, 03:17 PM)mlibre escribió: tengo la ligera sospecha que cuando lo actives apareceran mil bugs mas  Whatever

¿Que cosa el plugin o el modulo?
Responder
#22
(21/07/2022, 03:02 PM)samuelt escribió: Vale, probare a ver que tal y digo muchas gracias <3


Hola amigo hice lo que me dijiste pero me sigue arrojando el mismo problema:

L 07/21/2022 - 14:10:51: [SQLITE] No result set in this query!

L 07/21/2022 - 14:10:51: [AMXX] Run time error 10 (plugin "statspugbeta.amxx") (native "SQL_ReadResult") - debug not enabled!

L 07/21/2022 - 14:10:51: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

en plugins.ini coloca debug despues del .amxx, guardas y reinicias el servidor y arroja aqui lo que te salga en consola.
Responder
#23
(21/07/2022, 03:24 PM)Asta escribió: en plugins.ini coloca debug despues del .amxx, guardas y reinicias el servidor y arroja aqui lo que te salga en consola.

Hola amigo, hice un par de ajustes y el problema estaba en que tenía que colocar el plugin de "api_steamdata" antes del statspug y fue que asi se soluciono el problema xd sin necesidad de debug, entonces ahora cuando escribo ".stats" y ".top" carga fino el cuadro de dialogo me dice el top y las stats pero no carga la imagen del player Steam xd pq sera? Solo faltaría eso y estaría fino!

Muchas gracias a Asta y [N]drs por darme las soluciones efectivas! Ya funciona perfectamente el plugin! y solucionado el error al compilar solucionado por [N]drs el plugin ya trabaja perfectamente muchas gracias chicos xd, el unico detalle que tiene es que no muestra la foto del jugador Steam ni ideas de porque pero de resto todo funciona perfecto!
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)