Raised This Month: $ Target: $400
 0% 

Simple Problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 05-23-2010 , 17:28   Simple Problem
Reply With Quote #1

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.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-23-2010 , 18:02   Re: Simple Problem
Reply With Quote #2

I sent the PM request back. No semicolons after if() statements.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 05-23-2010 , 18:32   Re: Simple Problem
Reply With Quote #3

Quote:
Originally Posted by wrecked_ View Post
I sent the PM request back. No semicolons after if() statements.
Yes, thank you. I've sent another PM back.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 05-23-2010 , 22:51   Re: Simple Problem
Reply With Quote #4

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.
Seta00 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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