Blockland Forums > Modification Help

Need help scripting.

Pages: << < (20/31) > >>

zefoo:


--- Quote from: elm on June 27, 2012, 08:02:35 PM ---It means that their should already be a %player that is defined, above that code.

--- End quote ---
Like it should be something?
like %player = Zefoo?
Oh i get it.
So would
--- Code: ---%player = %client.player.name();
--- End code ---
work?

elm:


--- Quote from: zefoo on June 27, 2012, 08:03:31 PM ---Like it should be something?
like %player = Zefoo?

--- End quote ---

It should be an existing player object, so if that player object is yours or anyone else's, sure.

zefoo:


--- Quote from: elm on June 27, 2012, 08:04:42 PM ---It should be an existing player object, so if that player object is yours or anyone else's, sure.

--- End quote ---
Re read what i said above.

elm:

No, because first off, that name isn't stored to your player object, but to your client object. Secondly, the %player should be a player object, not a string.

zefoo:


--- Quote from: elm on June 27, 2012, 08:06:43 PM ---No, because first off, that name isn't stored to your player object, but to your client object. Secondly, the %player should be a player object, not a string.

--- End quote ---
So how would i get the person typing /command's name

--- Code: ---%player = %client.player;
--- End code ---
?

Pages: << < (20/31) > >>

Go to full version