Blockland Forums > Modification Help

Using %blah['blah'] stuff.

Pages: << < (6/6)

Chrono:


--- Quote from: Kalphiter on October 14, 2010, 09:33:59 PM ---MessageClient(%client, '', $RandomArray[%RandomTest]);

two single quotes

--- End quote ---
An empty tagged string will be the same as a blank string.

The problem is that there's no space between function and serverCmdTest

Pew446:


--- Quote from: Gartanium on October 14, 2010, 09:33:08 PM ---Could I get some help? After reading this topic I tried to make a simple script but it seems to think that there is something wrong with it.


--- Code: ---functionserverCmdtest (%client)
{
$RandomArray[1]="Random One";
$RandomArray[2]="Random Two";
$RandomArray[3]="Random Three";

%RandomTest = getrandom(1,3);

MessageClient(%client, "", $RandomArray[%RandomTest]);

}



--- End code ---


--- End quote ---




--- Code: ---function serverCmdtest(%client)
{
$RandomArray[1]="Random One";
$RandomArray[2]="Random Two";
$RandomArray[3]="Random Three";

%RandomTest = getrandom(1,3);

MessageClient(%client, '', $RandomArray[%RandomTest]);

}



--- End code ---


otto-san:

okay so i was right about how to use them.
Thanks, guys. :D

Pages: << < (6/6)

Go to full version