Robot Battle Home Log In | Register
Welcome Guest
Help | Search | Members | Contest Calendar | Chat

Robot Battle Registry  Discussion Forums  Error Messages  Incomplete brackets
 
Incomplete brackets Track this topic | Email this topic | Print this topic 
brad
Posted: May 19 2003, 09:32 PM


Administrator


Group: Admin
Posts: 543 (10 robots)
Member No.: 1
Joined: 7-November 02



Sorry, there is no additional information available for this error. Your request for information has been recorded, however, and we will add information to this website as often as possible.

Feel free to add your own comments about this error.
 
      Top

latios_fly
  Posted: Jul 12 2008, 05:04 AM


New Member


Group: Just Joined
Posts: 1 (0 robots)
Member No.: 1363
Joined: 12-July 08



When I write a robot, it says that there is an incomplete bracket error. The chunk of code around the error was:
blocking(Off)
lockgun(On)
regcldwall( WallHit, 1 )
regping( Pinged, 5 )
error> regcldrobot (Crash, 1) #here is the error

if(mode == 0)
regcore(WallCore)
else if(mode == 1)
regcore(SeesawCore)
regcldmissile(Evade, 2)
movedir = 1
else if(mode == 2)
regcore(RammerCore)
endif
endif
 
    Top

MrFox
Posted: Jul 13 2008, 04:29 PM


Tactical Engineer


Group: Moderators
Posts: 1116 (8 robots)
Member No.: 27
Joined: 23-May 03



Hey latios, I'm not really sure where you are getting this error. I took the liberty of "filling in the blanks" and there is no bracket error. You do, however, have one too many endif's in there

RSL
init{

blocking(Off)
lockgun(On)
regcldwall(WallHit, 1 )
regping(Pinged, 5 )
regcldrobot (Crash, 1)

if(mode == 0)
regcore(WallCore)
else if(mode == 1)
regcore(SeesawCore)
regcldmissile(Evade, 2)
movedir = 1
else if(mode == 2)
regcore(RammerCore)
//endif not needed
endif

}

SeesawCore{}
Evade{}
RammerCore{}
WallCore{}
Wallhit{}
Pinged{}
Crash{}


--------------------
"Life is inevitable."
Me

See profile for Authored Robots and Contest Standings.
Robots(7): Lunatic Frenzy, JAM, ittyBot, ZenBot,
ZenBittyBot,RadFly,Omni
 
    Top

<< Back to Error Messages