SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Maps

Reply
 
Thread Tools Display Modes
Old 13/01/2018, 10:39 PM   #1
nonyae
Little Clucker
 
Join Date: Jan 2018
Posts: 1
Reputation: 0
Question fatal error 103: insufficient memory Erro na Linha-> SetProgressBarValue(FomeA, dini_Int(file, "Fome"));

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;
}
nonyae is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compilation with SIF results in 'fatal error 103: insufficient memory' on variable assignment Lbaker Scripting Help 5 01/09/2017 03:35 AM
[Ajuda] ERRO C:\Users\POSITEC\Desktop\BRASIL REALIDADE RPG 2\gamemodes\BRR.pwn(3) : error fatal: 100: cannot read from file: "di PHard Português/Portuguese 3 10/12/2013 09:41 PM
fatal error 103: insufficient memory Admin22 Scripting Help 1 18/08/2013 03:52 PM
fatal error 103: insufficient memory? Mr_Finnigan Help Archive 1 10/07/2009 02:27 PM


All times are GMT. The time now is 05:59 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.