Help Not working
#6

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.
Reply


Messages In This Thread
Help Not working - by Buzzbomb - 07.10.2011, 14:19
Re: Help Not working - by Jafet_Macario - 07.10.2011, 14:25
Re: Help Not working - by Buzzbomb - 07.10.2011, 14:37
Respuesta: Help Not working - by kirk - 07.10.2011, 14:42
Re: Help Not working - by Jafet_Macario - 07.10.2011, 14:49
Respuesta: Re: Help Not working - by kirk - 09.10.2011, 21:14

Forum Jump:


Users browsing this thread: 2 Guest(s)