AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Simple Problem (https://forums.alliedmods.net/showthread.php?t=127687)

GXLZPGX 05-23-2010 17:28

Simple Problem
 
I have been pondering this for quite some time. It seems far too simple for me to be missing! How would I go about fixing this?!

Errors:

Line 25: Empty Statement
Line 34: Empty Statement

The actual lines:

Line 25: if(team == CS_TEAM_T);
Line 34: if(team == CS_TEAM_CT);

I apologize ahead of time for this simple error. Thank you.

wrecked_ 05-23-2010 18:02

Re: Simple Problem
 
I sent the PM request back. No semicolons after if() statements.

GXLZPGX 05-23-2010 18:32

Re: Simple Problem
 
Quote:

Originally Posted by wrecked_ (Post 1189267)
I sent the PM request back. No semicolons after if() statements.

Yes, thank you. I've sent another PM back.

Seta00 05-23-2010 22:51

Re: Simple Problem
 
While most languages use the lone semicolon (;) to represent an empty statement, Pawn uses an empty block ({}).

Quote:

Originally Posted by Pawn Language Guide
Empty statement
An empty statement performs no operation and consists of a compound block with zero statements;
that is, it consists of the tokens “{ }”. Empty statements are used in control flow statements if there
is no action (e.g. while (!iskey()) {}) or when defining a label just before the closing brace of a compound statement.
An empty statement does not end with a semicolon.



All times are GMT -4. The time now is 05:18.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.