Blockland Forums > Modification Help

need help with %arg 1

Pages: << < (2/6) > >>

Honorable:

nothing. I click on reexecuted the addon. and clicked on the brick thats supposed to open it. Nothing happened. Checked the console. Nothing changed.

herb:

so echo(%arg1); returns nothing right?

Honorable:

correct.

Pew446:


--- Quote from: Honorable on August 05, 2010, 05:25:42 PM ---registerOutputEvent(gameConnection, OpenGUI, string 100 100);

function gameConnection::GUIOpener(%this, %arg1, %client)
{
   if(%arg1 $= "")
   {
      return;
   }
   
   canvas.popdialog(%arg1);
}


--- End quote ---
No quotation marks on the string.

Honorable:

Oh! That almost fixed it. Just 1 problem. Syntax errors. or Error.

registerOutputEvent(gameConnection, OpenGUI, string 100 ##1##00);

function gameConnection::GUIOpener(%this, %arg1, %client)
{
   if(%arg1 $= "")
   {
      return;
   }
   
   canvas.popdialog(%arg1);
}

Pages: << < (2/6) > >>

Go to full version