Portal SAMP
[Ajuda] FECHANDO SERVIDOR Run time error 19: "File or function is not found" - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Ajuda] FECHANDO SERVIDOR Run time error 19: "File or function is not found" (/showthread.php?tid=3154)



FECHANDO SERVIDOR Run time error 19: "File or function is not found" - diggao - 07/01/2023

Salve, oq posso fazer nesta questão? meu sv liga normal mas passa um tempo e da isso e fecha.


[16:03:00] [debug] Run time error 13: "(reserved)"
[16:03:00] [debug] AMX backtrace:
[16:03:00] [debug] #0 00000008 in public OnPlayerClickPlayerTextDraw () from Gamemode.amx
[16:03:01] Conta diggao entrou
[16:03:02] [chat] [xXBz]: EAE mlk
[16:03:03] Conta do xXBz foi salva
[16:03:04] Conta do Diggao foi salva
[16:03:05] [debug] Run time error 13: "(reserved)"
[16:03:05] [debug] AMX backtrace:
[16:03:05] [debug] #0 00000008 in public OnPlayerClickPlayerTextDraw () from Gamemode.amx
[16:03:05] [debug] Run time error 19: "File or function is not found"


RE: FECHANDO SERVIDOR Run time error 19: "File or function is not found" - White_Blue - 07/01/2023

O erro "File or function is not found" geralmente é causado por uma função de um plugin ausente ou desatualizado.


RE: FECHANDO SERVIDOR Run time error 19: "File or function is not found" - k2bi_YT - 07/01/2023

Você fez alguma alteração/adição na callback OnPlayerClickPlayerTextDraw? Necessário o code para análise


RE: FECHANDO SERVIDOR Run time error 19: "File or function is not found" - diggao - 07/01/2023

public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if (PlayerData[playerid][dDropped] || IsPlayerAdminDuty(playerid))
return 1;

if (GetPVarInt(playerid, "varItensBase"))
{
if (clickedid == Text:INVALID_TEXT_DRAW || clickedid == textBaseCraft[1])
{
hideCraftItensBase(playerid);
}
// <<
else if (clickedid == textBaseCraft[2])
{
if (GetPVarInt(playerid, "pageCraftBase") > 0)
{
SetPVarInt(playerid, "pageCraftBase", GetPVarInt(playerid, "pageCraftBase") - 1);
updatePlayerCraftBaseText(playerid);
}
}
// >>
else if (clickedid == textBaseCraft[3])
{
if (GetPVarInt(playerid, "pageCraftBase") < MAX_PAGES_CRAFT_BASES)
{
SetPVarInt(playerid, "pageCraftBase", GetPVarInt(playerid, "pageCraftBase") + 1);
updatePlayerCraftBaseText(playerid);
}
}
}
#if defined qOnPlayerClickTextDraw
return qOnPlayerClickTextDraw(playerid, clickedid);
#else
return 1;
#endif
}
#if defined _ALS_OnPlayerClickTextDraw
#undef OnPlayerClickTextDraw
#else
#define _ALS_OnPlayerClickTextDraw
#endif
#define OnPlayerClickTextDraw qOnPlayerClickTextDraw
#if defined qOnPlayerClickTextDraw
forward qOnPlayerClickTextDraw(playerid, Text:clickedid);
#endif

public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
if (IsPlayerAdminDuty(playerid))
return 1;
if (GetPVarInt(playerid, "varItensBase"))
{
for(new text; text < 6; text++) {

if (playertextid == textPlayerBaseCraft[text])
{
new curitem = (GetPVarInt(playerid, "pageCraftBase") * 6);

SelectPlayerItem(playerid, curitem + text);

break;
}
}
}
#if defined qOPCPTD
return qOPCPTD(playerid, playertextid);
#else
return 1;
#endif
}
#if defined _ALS_OnPlayerClickPlayerTD
#undef OnPlayerClickPlayerTextDraw
#else
#define _ALS_OnPlayerClickPlayerTD
#endif
#define OnPlayerClickPlayerTextDraw qOPCPTD
#if defined qOPCPTD
forward qOPCPTD(playerid, PlayerText:playertextid);
#endif


RE: FECHANDO SERVIDOR Run time error 19: "File or function is not found" - diggao - 19/06/2023

revivendo o topico, alguem pode me ajudar?