Author Topic: my script help  (Read 705 times)

Code: [Select]
function GameConnection::onClientEnterGame(%client)
 
{

if(%name $= $pref::Player::NetName)
 
return;

%message = stripMlControlChars(%message);
 
{


CommandToServer('Messagesent',"TEST");


}



i cant figure out when a i join

can you help me???

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.

Maybe you aren't cut out for coding.

I do not see what you are trying to do or what you are asking.

i need to test the script if i join a server a message shows up

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: [Select]
package messageonjoin
{
   function gameconnection::oncliententergame(%client)
   {
      messageClient(%client, "", "You have entered the game!");
      parent::oncliententergame(%client);
   }
};
activatePackage(messageonjoin);

I think he means when he joins.

Code: [Select]
package messageonjoin
{
   function gameconnection::autoAdminCheck(%client)
   {
      messageClient(%client, "", "Welcome");
      parent::autoAdminCheck(%client);
   }
};
activatePackage(messageonjoin);