Author Topic: Script gone wrong...  (Read 472 times)

Yes, it's a private add-on of mine, I can add gadgets for it, so yeah.



I get a error on console saying

Quote
"DarrenGUI unknown command"

with this bit of editation, see where I have gone wrong?

Tell me!

Quote
exec("Add-Ons\Script_DarrenMods.zip\gui.gui");    // TAKE THIS OFF IF YOU DON'T NEED

if(!$DarrenGUI)
{
   $remapDivision[$remapCount] = "DarrenMods";
   $remapName[$remapCount] = "GUI";
   $remapCmd[$remapCount] = "DarrenGUI";
   $remapCount++;
   $DarrenGUI = true;
}

function DarrenGUI(%val)
{
    if(!%val)
    {
       return;
    }
   canvas.pushDialog(Add-Ons\Script_DarrenMods.zip\gui.gui);
}
« Last Edit: February 12, 2009, 02:00:46 PM by Haylord »

Haha you gotta be kidding me..

It's apart of a script, not all.

For one thing, you may want to have a look at your use of the pushDialog function.