21.06.2012, 04:37
Quote:
when i use this fs in my Gamemode the hunger bar doesnt show up...
|
pawn Код:
public OnPlayerSpawn(playerid)
{
new file[256],n[MAX_PLAYER_NAME];
GetPlayerName(playerid,n,MAX_PLAYER_NAME);
format(file,sizeof(file),"Stats/%s.txt",n);
if(!dini_Exists(file))
{
dini_Create(file);
dini_IntSet(file,"Hunger",100);
}
hungry[playerid] = CreateProgressBar(528.00, 115.00, 76.50, 8.50, 0x0000BBAA, 100.0);
ShowProgressBarForPlayer(playerid, hungry[playerid]);
TextDrawShowForPlayer(playerid, Hungry);
SetProgressBarValue(hungry[playerid], dini_Int(file,"Hunger"));
return 1;
}