Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Parser: no viable alternative at input '=', I am following the eat3d tutorial and i keep getting these 3 error
SwampGerman
post Jul 18 2013, 11:57 PM
Post #1


Newbie
*

Group: Members
Posts: 1
Joined: 18-July 13
Member No.: 6,742



I am following the Eat3d introduction and application tutorial and i really don't understand why i get those errors. I get the same errors using visualstudio 2010 or 2012.


CODE
class Overview extends Object;

//variables declaration
var bool bBool;
var (MyOptions) bool mybool;
var bool arBool[2];

arBool[1] = false;

///////////////////////
//Variables -Advanced

enum GameDev
{
GD_Artist,
GD_DESIGNER,
GD_PROGRAMMER,
GD_AUDIO,
};

//Using Enum
var GameDev dev = GD_DESIGNER;

function MyFonction()
{
local int iVariable;
iVariable = 9;
}

DefaultProperties
{
}


Erreur 4 Walker: mismatched tree node: <unexpected: [@152,527:527='[',<87>,12:6], resync=arBool> expecting <UP> C:\UDK\UDK-2013-07\Development\Src\Overview.uc 12 7 Eat3dUnrealScript
Erreur 6 Parser: The UnrealScript compiler does not support the new attribute syntax yet. C:\UDK\UDK-2013-07\Development\Src\Overview.uc 12 7 Eat3dUnrealScript
Erreur 3 Parser: no viable alternative at input '[' C:\UDK\UDK-2013-07\Development\Src\Overview.uc 12 7 Eat3dUnrealScript
Erreur 5 Parser: missing EndOfFile at '=' C:\UDK\UDK-2013-07\Development\Src\Overview.uc 12 11 Eat3dUnrealScript
Go to the top of the page
 
+Quote Post
280Z28
post Jul 28 2013, 04:37 PM
Post #2


Pixel Mine Developer
Group Icon

Group: Pixel Mine
Posts: 364
Joined: 29-May 08
Member No.: 1,453



You have the following code in your file.

CODE
arBool[1] = false;


However, the code is not placed within a function. You need to place the statement inside a function, and then it will be executed when the function is called.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 28th October 2020 - 05:25 AM