Quote:
Originally Posted by Jafet_Macario
pawn Код:
new Float: health; PlayerInfo[playerid][pHealth] = dini_Float(file,"Health"); dini_FloatSet(file, "Health",GetPlayerHealth(playerid, health));
|
You think that gonna set the player health? and i dont understand why do you store the health on a global variable, store the health on a variable when you gonna save it and use another variable (not global) to load and set the player health.
No need to use global variables for everything.
functionX: ...
{
new Float:healthvar;
GetPlayerHealth(...., healthvar);
dini_...Float(....,....);
...
}
Dont store the health on an enum, just create a variable on each function and get it when you gonna use it.