SA-MP Forums Archive
error 036: empty statement - 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: error 036: empty statement (/showthread.php?tid=340672)



error 036: empty statement - Deal-or-die - 08.05.2012

pawn Код:
error 036: empty statement
pawn Код:
new room;
sscanf(inputtext, "d", room);
if(room < 1 || room > MAX_ROOMS);
{
    format(string, sizeof(string), "You selected %s Rooms", room);
}
The error is on this line:
Код:
if(room < 1 || room > MAX_ROOMS);
--------------------------------------------------------------

pawn Код:
error 036: empty statement
pawn Код:
if(room > 1 || room < MAX_ROOMS);
{
    format(string, sizeof(string), "Please select a value of rooms between 1 and %s", MAX_ROOMS);
}

The error is also on this line:

Код:
if(room > 1 || room < MAX_ROOMS);



Re: error 036: empty statement - Vince - 08.05.2012

If-statements are never followed by a semicolon.


Re: error 036: empty statement - Deal-or-die - 08.05.2012

Ugh duh, Cheers mate...

Can't believe I missed that... lol, tiredness... -.-