Forum

> > CS2D > Scripts > In array to sec...
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch In array to sec...

22 Antworten
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

alt Re: In array to sec...

Zeik
User Off Offline

Zitieren
1
2
3
if hunger[id] < 150 then
	hunger[id] = hunger[id]+10
end
Way easier to understand.. at least for me and probably most beginners.

There's no way someone can get more than 150 "hunger points?" with this code...

...Unless there's another way to earn them, in which case you would use something like this:
1
2
3
4
5
if (hunger[id]+10) <= 150 then
	hunger[id] = hunger[id]+10
else
	hunger[id] = 150
end
Zum Anfang Vorherige 1 2 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht