Blockland Forums > Modification Help

Need help with cases

Pages: (1/1)

Gartanium:


--- Code: ---function serverCmdtest(%client)
{
$a ++;
switch($a)
{
case 1:
messageClient(%client,'', "1");

case 2:
messageClient(%client, '', "2");

default:
messageClient(%client, '', "default");
}

}

[code]
--- End code ---
[/code]

rkynick:

For starters,
messageclient(%client, '', "1");

Gartanium:


--- Quote from: rkynick on October 05, 2010, 09:01:51 PM ---For starters,
messageclient(%client, '', "1");

--- End quote ---

 I thought I didn't need to put %client there.

Pages: (1/1)

Go to full version