Blockland Forums > Modification Help

need help with %arg 1

Pages: (1/6) > >>

Honorable:

OKAY! So i was going to make a mod. It works good BUT. The only thing that messes it up is

canvas.pushdialog(%arg1);

Okay so. Would i need to put like %arg1 in "" or somthing? I just dont get it.

herb:

the gui name

if %arg is nothing, then you need to state what %arg is,

post the whole script plz

Pew446:

Mind telling us what %arg1's value is?

Honorable:


--- Quote from: herb on August 05, 2010, 05:21:28 PM ---the gui name

if %arg is nothing, then you need to state what %arg is,

post the whole script plz

--- End quote ---

registerOutputEvent(gameConnection,OpenGUI,"string 100 100");

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

herb:


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

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

--- End quote ---

echo the arg, see what it is, if it is anything at all?

Pages: (1/6) > >>

Go to full version