Compileing Issue
#1

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?

Код:
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
For the first error:
Код:
new Text:Hungry;
new Bar:hungry[MAX_PLAYERS] = {INVALID_BAR_ID, ...};
forward ProgressBar();
forward update();
Second and Third:
Код:
	for(new playerid; playerid < MAX_PLAYERS; playerid++)
    {
		GetPlayerHealth(playerid, health);
        new HungryTime = SetPlayerHealth(playerid, health -5);
		if(GetProgressBarValue(hungry[playerid]) <= 0)
Reply
#2

Would you mind showing the lines where the errors occur?
Reply
#3

The second line in "First Error" is the error #1 in compile list
The first line in "Second and Third Error" shows error #2 in compile list
The third line in "Second and Third Error" shows error #3 in compile list
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)