AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Expected token problem (https://forums.alliedmods.net/showthread.php?t=133877)

DoviuX 07-29-2010 16:07

Expected token problem
 
1 Attachment(s)
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

Bugsy 07-29-2010 16:16

Re: Expected token problem
 
Show the entire function or block of code

Emp` 07-29-2010 16:25

Re: Expected token problem
 
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.


All times are GMT -4. The time now is 00:11.

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