Author Topic: Variable?  (Read 1032 times)

How can I make a Variable and Assign it to something?

%client.variable = 2;

As long as %client (the object) is defined.

That means you can do, say, findClientByName("Jamesking").player.variable = 3;

so, if I wanted a variable to hold a color code, I would do:

%client.colorcode = "1 0 0";

then I could use that later on?

Tom

%client.variable = 2;

As long as %client (the object) is defined.

That means you can do, say, findClientByName("Jamesking").player.variable = 3;
Thats assigning it to the player, not the client object.

Warning - while you were typing a new reply has been posted. You may wish to review your post.

JamesKing - You could use it in any function with %client defined

Thats assigning it to the player, not the client object.
Yes I know


James, as long as %client is actually defined, yeah

erm.. it dont work, it has an error in the console saying "String always evaluates to 0" and it doesnt do what it is supposed to do....

Any other ideas?

Warning - while you were reading a new reply has been posted. You may wish to review your post.

Yes I know


James, as long as %client is actually defined, yeah

it still wont work :(