Blockland Forums > Modification Help

Using %blah['blah'] stuff.

Pages: << < (5/6) > >>

Uristqwerty:

Exactly!

Chrono:

And more-so to that,

%client.bear[1] = 5;
%client.bear[2] = 6;
for(%x=1;%x<=2;%x++)
echo(%client.bear[%x]);

This would echo
5
6

Gartanium:

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 ---


Kalphiter:

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

two single quotes

Gartanium:

Its always the simple stuff isn't it lol ty Kalphiter.
hmm nvm, it still doesn't wan't to work.

Pages: << < (5/6) > >>

Go to full version