error 036: empty statement
#1

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);
Reply
#2

If-statements are never followed by a semicolon.
Reply
#3

Ugh duh, Cheers mate...

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


Forum Jump:


Users browsing this thread: 1 Guest(s)