451
Off Topic / Re: Great Songs
« on: October 07, 2010, 01:41:54 PM »
Bohemian Polka
[/thread]
[/thread]
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Well, I believe setPlayerName has syntax to it. Like, is phrases the name given to clean it up. Not that it can be accessed in Blockland Retail, but getPlayerName must have it's own type of code in it.
Bet in basics, setPlayerName just did %client.name = Blah; but with fixes. So think of getPlayerName in the same way.
function GameConnection::setPlayerName(%client,%name)
{
%client.sendGuid = 0;
// Minimum length requirements
%name = stripTrailingSpaces( strToPlayerName( %name ) );
if ( strlen( %name ) < 3 )
%name = "Poser";
// Make sure the alias is unique, we'll hit something eventually
if (!isNameUnique(%name))
{
%isUnique = false;
for (%suffix = 1; !%isUnique; %suffix++) {
%nameTry = %name @ "." @ %suffix;
%isUnique = isNameUnique(%nameTry);
}
%name = %nameTry;
}
// Tag the name with the "smurf" color:
%client.nameBase = %name;
%client.playerName = addTaggedString("\cp\c8" @ %name @ "\co");
}
1. You stole the pic from that site1. It's a site I'm making as request, doofhead. It's not illegal to steal from your own site, and the IP it's hosted from is my home network's static external ip. :/
2. Why is half of it gibberish and half english? (its prolly not gibberish i just cant read it)
.