Author Topic: Random Error's  (Read 3387 times)

My Consol keeps reporting errors that arent there O.o, and there isnt any in any of the script.

for example:

Code: [Select]
new GuiBitmapButtonCtrl(Left Arm)## ##{
         profile = "BlockButtonProfile";
         horizSizing = "right";
         vertSizing = "bottom";
         position = "154 161";
         extent = "80 30";
         minExtent = "8 2";

Thats from a gui i made in the Gui Editor thing, i mean wtf? Its saying it made that error itself?


Theres nothing wrong with it, i made the whole gui 100% in the Gui Editor and named the button In the gui editor. TGE wrote that itself xD

Badspot

  • Administrator
You cannot have spaces in object names.  Change it to "Left_Arm".

Oh right, so its my fault xD. Sorry.

Badspot

  • Administrator
It's stupid that the engine lets you type that in as a name, but yeah. 

It should automagically change it.

Well, Sorry for this bump (Better than making new topic) but im pretty sure (%90) that theres nothing wrong with this:

Code: [Select]
datablock TriggerData(NoobKillingTrigger){
   tickPeriodMS = 100;
};

function ##N##oobKillingTrigger::onEnterTrigger(%this, %trigger, %obj){
if(!%obj.isAdmin){

Badspot

  • Administrator
the error could be further back in the code. 

It says Advanced error on line 70 but theres only 66 lines ><

If I remember correctly, it gives the real line and a syntax line or something. You were probably reading the syntax line :/

Quote from: Consol.log
Code: [Select]
Add-Ons/Jail.cs Line: 40 - Syntax error.
>>> Advanced script error report.  Line 79.
>>> Some error context, with ## on sides of error halt:
datablock TriggerData(NoobKillingTrigger){

   tickPeriodMS = 100;

};



function ##N##oobKillingTrigger::onEnterTrigger(%this, %trigger, %obj){

^if(!%obj.client.isAdmin){
>>> Error report complete.

Quote
>>> Advanced script error report.  Line 79.
That's the line number the game assigns, the line above it should be the correct line number.

Well i cant see anything wrong with the code anywhere!

Then post the whole script file :/ only way we can check correctly :/