SA-MP Forums Archive
Compileing Issue - 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: Compileing Issue (/showthread.php?tid=396786)



Compileing Issue - nLs - 02.12.2012

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)



Re: Compileing Issue - Bakr - 02.12.2012

Would you mind showing the lines where the errors occur?


Re: Compileing Issue - nLs - 02.12.2012

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