12/11/2023 11:02
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;
}