Portal SAMP
[Ajuda] Ajuda com Include - 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] Ajuda com Include (/showthread.php?tid=4196)



Ajuda com Include - RosaScripter - 12/11/2023

Atualmente identifiquei um aviso no Crash Detect e não sei como irei resolver pós não vejo nada de errado no codigo, deixarei abaixo o aviso no log e a parte do cod.

Código:
[10:51:38] [debug] Server crashed while executing homeland.amx
[10:51:38] [debug] AMX backtrace:
[10:51:38] [debug] #0 native CallLocalFunction () in samp-server.exe
[10:51:38] [debug] #1 000b9620 in public UpdateProgress (playerid=1) at C:\Users\Administrador\Desktop\Baixada-Roleplay\pawno\include\processo.inc:56
[10:51:38] [debug] Native backtrace:

Código:
CallProg:: UpdateProgress(playerid)
{
    if(Progress_Info[playerid][p_percent] >= 100.0) return KillProgress(playerid);
    new string[80];
    Progress_Info[playerid][p_percent] += 5; //(100 / Progress_Info[playerid][p_percent]); //
    SetPlayerProgressBarValue(playerid, ProgressoBar_pp[playerid][0], Progress_Info[playerid][p_percent]);
    format(string, sizeof(string), "%.0f%", Progress_Info[playerid][p_percent]);
    PlayerTextDrawSetString(playerid, ProgressoBar[playerid][7], string);
    format(string, sizeof(string), "%s", ConvertTime(Reloginho[playerid]-gettime()));
    PlayerTextDrawSetString(playerid, ProgressoBar[playerid][13], string);
    PlayerTextDrawShow(playerid, ProgressoBar[playerid][7]);
    PlayerTextDrawShow(playerid, ProgressoBar[playerid][13]);
    
    CallLocalFunction(Progress_Info[playerid][p_callback], "df", playerid, Progress_Info[playerid][p_percent]);
    return 1;
}



RE: Ajuda com Include - pushline - 12/11/2023

Tá usando progress2 com os ultimos commits e compilando com -d3?