02.12.2012, 02:37
Hey, I'm new to pawno and I'm making a hunger system (based off of RipLagger's) here's what I get when I compile. What am I doing wrong?
For the first error:
Second and Third:
Код:
C:\Users\Derek\Desktop\hunger.pwn(20) : error 029: invalid expression, assumed zero C:\Users\Derek\Desktop\hunger.pwn(39) : error 001: expected token: "-identifier-", but found ";" C:\Users\Derek\Desktop\hunger.pwn(41) : error 008: must be a constant expression; assumed zero
Код:
new Text:Hungry; new Bar:hungry[MAX_PLAYERS] = {INVALID_BAR_ID, ...}; forward ProgressBar(); forward update();
Код:
for(new playerid; playerid < MAX_PLAYERS; playerid++) { GetPlayerHealth(playerid, health); new HungryTime = SetPlayerHealth(playerid, health -5); if(GetProgressBarValue(hungry[playerid]) <= 0)