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


Messages In This Thread
Compileing Issue - by nLs - 02.12.2012, 02:37
Re: Compileing Issue - by Bakr - 02.12.2012, 03:47
Re: Compileing Issue - by nLs - 02.12.2012, 04:17

Forum Jump:


Users browsing this thread: 1 Guest(s)