Author Topic: How would you set more than one box for an output  (Read 544 times)

Title says it, im trying to make three boxes for a recoloring mod. (For custom color setting on players)

I'm guessing you'd do something like this:
Code: [Select]
registerOutputEvent(Player, doColorChange, "paintColor 0" TAB "paintColor 0" TAB "paintColor 0", 1)

function Player::doColorChange(%player,%color0,%color1,%color2,%client)
{
 //Stuff
}
EDIT: Fixed the name of the function.
« Last Edit: August 14, 2008, 07:06:05 AM by Space Guy »

Wrong, Use this one:

Code: [Select]
registerOutputEvent(Player,"doColorChange","list color0 0 color1 1 color2 2 color3 3 color4 4",1);

function Player::doColorChange(%player,%color,%client)
{
}
« Last Edit: August 14, 2008, 07:16:21 AM by Ephialtes »

I'm assuming since he wanted "three boxes" to set a custom colour setting, he wants to have multiple "select colour" boxes rather than a list box.

I see what you mean, I thought you were doing something weird with the name paintcolor but forgot it was the thing for the paintbox.