[HELP]Hunger System - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP]Hunger System (
/showthread.php?tid=442204)
[HELP]Hunger System -
faff - 06.06.2013
Hello, I'm working on a hunger system, Thirst system, and sleep system.
I was asking myself, if this would be possible?
Код:
hhunger = PlayerInfo[playerid][pHunger];
PlayerInfo[playerid][pHunger] = hhunger-1;
?
Re: [HELP]Hunger System -
MA_proking - 06.06.2013
Quote:
Originally Posted by faff
Hello, I'm working on a hunger system, Thirst system, and sleep system.
I was asking myself, if this would be possible?
Код:
hhunger = PlayerInfo[playerid][pHunger];
PlayerInfo[playerid][pHunger] = hhunger-1;
?
|
Why don't you do simply
pawn Код:
PlayerInfo[playerid][pHunger]--;
Other wise that will work but it will take you computer memory.