SA-MP Forums Archive
[Tool/Web/Other] fatal error 103: insufficient memory Erro na Linha-> SetProgressBarValue(FomeA, dini_Int(file, "Fome")); - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Maps (https://sampforum.blast.hk/forumdisplay.php?fid=64)
+---- Thread: [Tool/Web/Other] fatal error 103: insufficient memory Erro na Linha-> SetProgressBarValue(FomeA, dini_Int(file, "Fome")); (/showthread.php?tid=647973)



fatal error 103: insufficient memory Erro na Linha-> SetProgressBarValue(FomeA, dini_Int(file, "Fome")); - nonyae - 13.01.2018

public AtualizarFome(playerid)
{
format(file, sizeof(file),PASTA_CONTAS,GetPlayerNameEx(playerid ));

if(AFK[playerid] == 0 && IsPlayerConnected(playerid) && PlayerInfo[playerid][Logged] == 1 && noevento[playerid] == 0 && dini_Int(file, "Preso") == 0)
{
dini_IntSet(file, "Fome",dini_Int(file, "Fome")-1);
SetProgressBarValue(FomeA, dini_Int(file, "Fome"));
UpdateProgressBar(FomeA,playerid);
}

new Float:vida;

if(dini_Int(file, "Fome") ==
{
SendClientMessage(playerid, 0xFF0000FF,"| FOME | Voce esta com fome vб atй a lanchonete comer algo!");
}
if(dini_Int(file, "Fome") == 6)
{
SetPlayerDrunkLevel(playerid, 8000);
GetPlayerHealth(playerid,vida),SetPlayerHealth(pla yerid,vida - 20.0);
SendClientMessage(playerid, 0xFF0000FF,"| FOME | Voce esta com fome vб atй a lanchonete ou irб morrer desnutrido!");
}
if(dini_Int(file, "Fome") <= 5)
{
SetPlayerHealth(playerid, 0.0);
SendClientMessage(playerid, 0xFF0000FF, "| FOME | Vocк morreu de Fome!");
MorreuFome[playerid] = true;
}
return 1;
}