Raised This Month: $ Target: $400
 0% 

Expected token problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 07-29-2010 , 16:07   Expected token problem
Reply With Quote #1

Code:
//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// aleliuja.sma
// D:\DoviuX\scripting\Code.sma(79) : error 001: expected token: ",", b
ut found ";"
// D:\DoviuX\scripting\Code.sma(79) : error 029: invalid expression, as
sumed zero
// D:\DoviuX\scripting\Code.sma(79) : warning 215: expression has no ef
fect
// D:\DoviuX\scripting\Code.sma(79) : error 029: invalid expression, as
sumed zero
// D:\DoviuX\scripting\Code.sma(79) : fatal error 107: too many error m
essages on one line
//
// Compilation aborted.
// 4 Errors.
// Could not locate output file D:\DoviuX\scripting\compiled\Code.amx (
compile failed).
//
// Compilation Time: 0,33 sec
// ----------------------------------------

Press enter to exit ...
79:
PHP Code:
    set_task(INTERVAL"showEnemies"___"b"
Using: AdaskoMX , Enemy Radar
Attached Files
File Type: sma Get Plugin or Get Source (Code.sma - 153 views - 12.8 KB)
DoviuX is offline
Send a message via Skype™ to DoviuX
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-29-2010 , 16:16   Re: Expected token problem
Reply With Quote #2

Show the entire function or block of code
__________________
Bugsy is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 07-29-2010 , 16:25   Re: Expected token problem
Reply With Quote #3

Because you are using
Code:
#pragma semicolon 1;
It requires that you end most lines with a semicolon.

Simply changing it to
Code:
    set_task(INTERVAL, "showEnemies", _, _, _, "b");
will fix this problem.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
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 00:11.


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