Blockland Forums > Modification Help
onPlant and onRemove errors?
<< < (3/3)
Greek2me:
Here you go:

--- Code: ---Add-Ons/Server_VW_Extension/capturepoints.cs Line: 113 - Syntax error.
>>> Some error context, with ## on sides of error halt:
^^bottomprint(%client,"<just:center>\c3Capture \c6: <just:left>\c0||||||||||||||||||||",1);

^^}

^if(%client.team == 2 && %brick.control == 2)

^^{

^^bottomprint(%client,"<just:center>\c3Capture \c6: <just:left>\c1||||||||||||||||||||",1);

^^}

^}



Package VWCapPoints
##
##{

function fxDTSBrick::onPlant(%this)

^{

^Parent::onPlant(%this);

^if(%this.dataBlock.isVWCapturePoint)

^^{

^^%this.createTriggerZone(VWcontrolTriggerData);

^^}

^}

function fxDTSBrick::onRemove(%this)

^{

^if(%this.dataBlock.isVWCapturePoint)

^^{
>>> Error report complete.

ADD-ON "Server_VW_Extension" CONTAINS SYNTAX ERRORS
--- End code ---

Thanks for the help so far
Headcrab Zombie:
Yeah I just did a quick test in BL, capitalizing package caused an error while not capitalizing it didn't.
Remove the capital and post the error again.
Greek2me:

--- Quote from: Headcrab Zombie on September 22, 2010, 11:16:52 PM ---Not sure if it makes a difference, but try not capitalizing package

--- End quote ---

O, sorry, I misunderstood you- I though you meant capitalize it in activatepackage. Thanks! resolved in about 10 minutes. That worked, probably one of BL's dumbest syntax errors ever...

Locking
Navigation
Message Index
Previous page

Go to full version