UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: AggressiveVideos on August 15, 2015, 07:58:57 am

Title: Bad Syntax
Post by: AggressiveVideos on August 15, 2015, 07:58:57 am
After trying to run the map I encountered this:

"Error
Server script compile error
bad syntax
#include maps\_zombiemode::main[];
(see console for details)"

This is after using developer 1 in console.
Title: Re: Bad Syntax
Post by: Harry Bo21 on August 17, 2015, 09:50:19 pm
After trying to run the map I encountered this:

"Error
Server script compile error
bad syntax
#include maps\_zombiemode::main[];
(see console for details)"

This is after using developer 1 in console.
Should be () not []
Title: Re: Bad Syntax
Post by: DidUknowiPwn on August 17, 2015, 09:52:34 pm
#include is for files only not a function call.

If you want to call said function then you don't need to do the #include.
Title: Re: Bad Syntax
Post by: CrazyRandomzZ on August 17, 2015, 10:49:22 pm
#include is for files only not a function call.

If you want to call said function then you don't need to do the #include.

 if this is for a new script that is using the _zombiemode file then you remove the ::main[];
is this at the very top? then it should look like this:
Code Snippet
Plaintext
#include maps\_zombiemode;

aslo after using developer 1 press "Shift + `(console key)" this will bring up the console but with the more info. will tell you the exact line and file where the issue is occurring.