Error al compilar statspug - samuelt - 18/07/2022
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(said, charsmax(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 i = 1; i <=g_iMaxPlayers; i++) { 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(i, szName, charsmax(szName)); menu_additem(menu, szName, fmt("%d", i)); } } menu_setprop(menu, MPROP_NEXTNAME, "Siguiente"); menu_setprop(menu, MPROP_BACKNAME, "Anterior"); menu_setprop(menu, MPROP_EXITNAME, "Salit"); menu_display(index, menu); }
public h_listplayers(index, menu, item) { if (item == MENU_EXIT) { menu_destroy(menu); return PLUGIN_HANDLED; } if (item != 0) { new szInfo[5]; menu_item_getinfo(menu, item, _, szInfo, charsmax(szInfo), _); new target = str_to_num(szInfo);
if (!is_user_connected(target)) { client_print_color(0, print_team_default, "%s El jugador no esta conectado", g_szTag); return PLUGIN_HANDLED; }
client_print_color(0, print_team_default, "%s ^3%n^1 esta viendo las estadisticas de ^3%n", g_szTag, index, target); DisplayPlayerStats(index, target); } else { DisplayPlayerStats(index, index); } menu_destroy(menu); return PLUGIN_HANDLED; } public client_putinserver(index) { if (!is_user_connected(index)) return;
for(new i = 0; i <sizeof(g_PlayerData[]); i++) { g_PlayerData[index][i] = EOS; }
get_user_authid(index, g_szPlayerAuthdID[index], charsmax(g_szPlayerAuthdID[])); get_user_name(index, g_szPlayerName[index], charsmax(g_szPlayerName[])) PlayerRegister(index); } public OnPlayerTakeDamage_Pre( v, i, a, Float:flDamage, iDamageBits ) { if (pug_get_state() != ALIVE) return;
pev(v, pev_health, g_flHealth); } public OnPlayerTakeDamage_Post( v, i, a, Float:flDamage, iDamageBits ) { if (pug_get_state() != ALIVE) return;
new Float:flDmgTake; pev(v, pev_dmg_take, flDmgTake);
new Float:flRealDamage = floatmin(flDmgTake, g_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 = 1; index <=g_iMaxPlayers; index++) { if (is_user_connected(index) && (1<=get_user_team(index)<=2)) { g_PlayerData[index][Rounds]++; } } } public EventPugStart() { for(new index = 1; index <=g_iMaxPlayers; index++) { for(new i = 0; i <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], iLen, iPosition; new iRoundsCT = PugGetRoundWinTeam(CS_TEAM_CT); new iRoundsTT = PugGetRoundWinTeam(CS_TEAM_T);
switch (WinState) { case 1: { iRoundsTT++; } case 2: { iRoundsCT++; } } get_mapname(szMapName, charsmax(szMapName)); iLen += formatex( szMotd[ iLen ], 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_STYLE, szMapName, iRoundsCT); new szAuthID[64]; new players[32], iPlayers; get_players(players, iPlayers, "e", "CT"); for(new index = 0; index <iPlayers; index++) { get_user_authid(index, szAuthID, charsmax(szAuthID)); replace_all(szAuthID, charsmax(szAuthID), ":", "_"); iPosition++; iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "<tr align=center>" ); iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "<td>%i", iPosition ); iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "<td>%n", players[index]); iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "<td>%i", g_PlayerData[players[index]][Kills]); iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "<td>%i", g_PlayerData[players[index]][HeadShots]); iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "<td>%i", g_PlayerData[players[index]][Deaths]); } iLen += formatex( szMotd[ iLen ], 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(players, iPlayers, "e", "TERRORIST"); for(new index = 0; index <iPlayers; index++) { get_user_authid(index, szAuthID, charsmax(szAuthID)); replace_all(szAuthID, charsmax(szAuthID), ":", "_"); iPosition++; iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "<tr align=center>" ); iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "<td>%i", iPosition ); iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "<td>%n", players[index]); iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "<td>%i", g_PlayerData[players[index]][Kills]); iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "<td>%i", g_PlayerData[players[index]][HeadShots]); iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "<td>%i", g_PlayerData[players[index]][Deaths]); } iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "</table></body>" ); for(new index = 1; index <=g_iMaxPlayers; index++) { if (is_user_connected(index) && (1<=get_user_team(index)<=2)) { g_PlayerData[index][Pugs]++; SaveGlobalPlayerData(index); show_motd(index, szMotd, "Mod PUG v1.1 | Estadisticas de mapa"); } } } /********************* SQLX GUARD ***********************************/ public SQLXInit() { new get_type[12] SQL_SetAffinity("sqlite") SQL_GetAffinity(get_type, sizeof(get_type)) if (!equali(get_type, "sqlite")) { log_to_file("SQLX.log", "Driver no encontrado") pause("a") } else { static error, szError[300] g_query = SQL_MakeDbTuple("", "", "", SQLX_DATABASE) g_tuple = SQL_Connect(g_query, error, szError, 300) if (strlen(szError)) { log_to_file("ErrorSQL.log", szError) pause("a") } CheckTabla(); } } public CheckTabla() { new szTemp[768] formatex(szTemp, charsmax(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_TABLA, COLUMN_AUTHID, COLUMN_NAME, COLUMN_KILLS, COLUMN_DEATHS, COLUMN_HEADSHOTS, COLUMN_BOMBPLANTEDS, COLUMN_BOMBDEFUSED, COLUMN_DAMAGES, COLUMN_ROUNDS, COLUMN_PUGS) g_query = SQL_PrepareQuery(g_tuple, szTemp) 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(szTemp, charsmax(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_tuple, szTemp); 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(szTemp, charsmax(szTemp), "SELECT * FROM %s WHERE ^"%s^" = ^"%s^"", SQLX_TABLA, COLUMN_AUTHID, g_szPlayerAuthdID[index]); g_query = SQL_PrepareQuery(g_tuple,szTemp);
if (SQL_Execute(g_query)) { new iKills = SQL_ReadResult(g_query, 2); new iDeaths = SQL_ReadResult(g_query, 3); new iHeadShots = SQL_ReadResult(g_query, 4); new iBombPlanteds = SQL_ReadResult(g_query, 5); new iBombDefused = SQL_ReadResult(g_query, 6); new Float:flDamage; SQL_ReadResult(g_query, 7, flDamage); new iRounds = SQL_ReadResult(g_query, 8); new iPugs = SQL_ReadResult(g_query, 9);
formatex(szTemp, charsmax(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_tuple, szTemp); if(SQL_Execute(g_query)) console_print(index, "Datos Actualizados"); else console_print(index, "Error Actualizar datos"); } } public CmdTop(index) { new szTemp[256]; formatex(szTemp, charsmax(szTemp), "SELECT * FROM %s ORDER BY `%s`-`%s` DESC LIMIT 10", SQLX_TABLA, COLUMN_KILLS, COLUMN_DEATHS); g_query = SQL_PrepareQuery(g_tuple, szTemp); if (SQL_Execute(g_query)) { if(SQL_NumResults(g_query)) { new szMotd[1800], iLen, iPosition; iLen += formatex( szMotd[ iLen ], 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_query, 0, szAuthID, charsmax(szAuthID)); SQL_ReadResult(g_query, 1, szName, charsmax(szName)); new iKills = SQL_ReadResult(g_query, 2); new iDeaths = SQL_ReadResult(g_query, 3); new iHeadShots = SQL_ReadResult(g_query, 4); new Float:flDamage; SQL_ReadResult(g_query, 7, flDamage); new iRounds = SQL_ReadResult(g_query, 8); replace_all(szAuthID, charsmax(szAuthID), ":", "_");
iPosition++; iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "<tr align=center>" ); iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "<td>%i", iPosition ); iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "<td>%s", szName); iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "<td>%i", iKills); iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "<td>%i", iHeadShots); iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "<td>%i", iDeaths); iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "<td>%0.02f", flDamage); iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "<td>%0.02f", flDamage / float(iRounds)); SQL_NextRow(g_query); } iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "</table></body>" ); show_motd(index, szMotd, "Mod PUG v1.1 | TOP 10"); } } } public DisplayPlayerStats(index, target) { if (!is_user_connected(index)) return;
if (!is_user_connected(target)) { client_print_color(index, print_team_default, "%s El usuario no esta conectado", g_szTag); return; }
new szTemp[256] formatex(szTemp, charsmax(szTemp), "SELECT * FROM %s WHERE ^"%s^" = ^"%s^"", SQLX_TABLA, COLUMN_AUTHID, g_szPlayerAuthdID[target]); g_query = SQL_PrepareQuery(g_tuple,szTemp);
if (SQL_Execute(g_query)) { new iKills = SQL_ReadResult(g_query, 2); new iDeaths = SQL_ReadResult(g_query, 3); new iHeadShots = SQL_ReadResult(g_query, 4); new iBombPlanteds = SQL_ReadResult(g_query, 5); new iBombDefused = SQL_ReadResult(g_query, 6); new Float:flDamage; SQL_ReadResult(g_query, 7, flDamage); new iRounds = SQL_ReadResult(g_query, 8); new iPlayingPugs = SQL_ReadResult(g_query, 9);
new szAvatar[130]; get_steamdata(target, szAvatar, charsmax(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>", szAvatar, target); 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 += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "\ <tr align=center>\ <td>%i\ <td>%i\ <td>%i", iKills, iHeadShots, iDeaths); iLen += formatex( szMotd[ iLen ], 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 += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "\ <tr align=center>\ <td>%i\ <td>%i\ <td>%0.02f\ <td>%0.02f", iBombPlanteds, iBombDefused, flDamage, flDamage / float(iRounds)); iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "</table><table width=100%%>\ <tr align=center>\ <th width=25%%>Pugs Jugados:" ); iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "\ <tr align=center>\ <td>%i</table>", iPlayingPugs); iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "</div></br>" ); iLen += formatex( szMotd[ iLen ], sizeof szMotd - iLen, "</body>" ); show_motd( index, szMotd, fmt( "AMXX-STATS | %n", target)); } }
RE: Error al compilar statspug - Alejandro - 19/07/2022
xd Como regan mi contenido tan feo. F
RE: Error al compilar statspug - samuelt - 19/07/2022
._. A pos no se we ese code lo saque de la PC de un compa xd
RE: Error al compilar statspug - Nelo - 19/07/2022
capaz te falta algun include
RE: Error al compilar statspug - rojedafeik - 19/07/2022
(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
RE: Error al compilar statspug - mlibre - 19/07/2022
por lo visto no existe
(18/07/2022, 10:07 PM)samuelt escribió: Error: Undefined symbol "PugGetRoundWinTeam" on line 208
RE: Error al compilar statspug - samuelt - 19/07/2022
(19/07/2022, 10:24 AM)Nelo escribió: capaz te falta algun include
Tengo todos los includes 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
RE: Error al compilar statspug - mlibre - 19/07/2022
dices que sacaste el sma de la pc de alguien... entonces no tienes la fuente donde viene completo
RE: Error al compilar statspug - samuelt - 19/07/2022
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..
RE: Error al compilar statspug - [N]drs - 20/07/2022
(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
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)) } }
RE: Error al compilar statspug - samuelt - 20/07/2022
(20/07/2022, 11:45 AM)[N]drs escribió: Agrega este include debajo de los demás includes
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
RE: Error al compilar statspug - [N]drs - 20/07/2022
(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?
RE: Error al compilar statspug - samuelt - 20/07/2022
(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.
RE: Error al compilar statspug - Asta - 20/07/2022
(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
RE: Error al compilar statspug - samuelt - 20/07/2022
(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
RE: Error al compilar statspug - roccoxx - 21/07/2022
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.
RE: Error al compilar statspug - samuelt - 21/07/2022
(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 estadisticas AYUDA!
RE: Error al compilar statspug - Asta - 21/07/2022
(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 estadisticas 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.
RE: Error al compilar statspug - samuelt - 21/07/2022
(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).
RE: Error al compilar statspug - mlibre - 21/07/2022
tengo la ligera sospecha que cuando lo actives apareceran mil bugs mas
RE: Error al compilar statspug - samuelt - 21/07/2022
(21/07/2022, 03:17 PM)mlibre escribió: tengo la ligera sospecha que cuando lo actives apareceran mil bugs mas
¿Que cosa el plugin o el modulo?
RE: Error al compilar statspug - Asta - 21/07/2022
(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.
RE: Error al compilar statspug - samuelt - 21/07/2022
(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!
|