Shoutbox

Problem using /script - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Problem using /script (/showthread.php?tid=62590)

Problem using /script by Blaggi on 07-05-2006 at 02:31 PM

Yeah so im building a Gradient Script, and i want to Configure the colors with the /script command

code:
function color_1(c)
{
     col1 = c;
     toast("Gradient", "Color 1 set to "+c+"!");
}

function color_2(c)
{
     col2 = c;
     toast("Gradient", "Color 2 set to "+c+"!");
}

function color_3(c)
{
     col3 = c;
     toast("Gradient", "Color 3 set to "+c+"!");
}

function toast(title, text)
{
     MsgPlus.DisplayToast(title, text);
}


When i do e.g "/script color_1 4", to change first color to red, i get that tost:

Gradient:
Color 1 set to  !

And it doesnt change color, so the c param doesnt work oO

RE: Problem using /script by Blaggi on 07-05-2006 at 09:51 PM

bump..

No solution for this?
This thread seems to fell back on page 2.....


RE: Problem using /script by ShawnZ on 07-05-2006 at 10:09 PM

that isn't how you read parameters. search the documentation for ScriptCommandTemplate.