Author Topic: Displaying Values in a Client Message  (Read 1664 times)

yeah,
%1 in welcome message is replaced with client name.
I thought you would make the connection.

%1 in welcome message is replaced with client name.
I thought you would make the connection.
Welcome message code is probably something along these lines:
Code: [Select]
messageClient(%client, '', '%2', %client.name, %welcomemessage);
Would doing that work? Finding a variable within a variable..

%1 in welcome message is replaced with client name.
I thought you would make the connection.
I probably would have if I played blockland more often, I don't play it much anymore. Even then, I've always thought it just used a string replace function, whatever it's called

Welcome message code is probably something along these lines:
Code: [Select]
messageClient(%client, '', '%2', %client.name, %welcomemessage);
No, it's probably more like this:
$Pref::Server::WelcomeMessage = "Welcome to Blockland, %1;
messageClient(%client,'',$Pref::Server::WelcomeMessage,%client.getPlayerName());



why haven't I seen anyone use this before?
I use it all the time

« Last Edit: September 26, 2012, 07:52:14 AM by Headcrab Zombie »

Does messageall also replace those %1 stuff?