Blockland Forums > Modification Help
my script help
clinr121:
--- Code: ---function GameConnection::onClientEnterGame(%client)
{
if(%name $= $pref::Player::NetName)
return;
%message = stripMlControlChars(%message);
{
CommandToServer('Messagesent',"TEST");
}
--- End code ---
i cant figure out when a i join
can you help me???
Iban:
Aside from the fact that this contains multiple syntax errors it does not seem to have any purpose. Your description of what you're trying to accomplish is none-too-clear, either.
Jasa 12265:
Maybe you aren't cut out for coding.
I do not see what you are trying to do or what you are asking.
clinr121:
i need to test the script if i join a server a message shows up
Nexus:
lets make a list of issues.
1. You need to package this
2. You need to match up each { with a }
3. %name doesn't really exist yet. I think you want %client.name
4. Where the heck does the string control come from?
5. Your function doesn't do anything
6. I got bored making this list, but you have more things done wrong than correctly
--- Code: ---package messageonjoin
{
function gameconnection::oncliententergame(%client)
{
messageClient(%client, "", "You have entered the game!");
parent::oncliententergame(%client);
}
};
activatePackage(messageonjoin);
--- End code ---