Jump to content

Easy, but hard for me. <help>


Rachhet

Recommended Posts

Posted

addCommandHandler ("s",
function(player)
getPlayerName(player)
  outputChatBox(getPlayerName(player)player":Siema!")
end
)

I want this script to output a chat message after showing who player is typing.

<player>:"Siema!" 

not

Siema! <player>

Posted
1 minute ago, enzopaul4 said:

addCommandHandler ("s",
function (thePlayer)
  outputChatBox("".. getPlayerName(player) ..":Siema!")
end
)

Do you mean something like this? 

Yes, but i just dont understand the.. dots! Nothing was describing them on tutorials. Can you tell me what these dots are doing? .. 

Posted

If you want to put a function in another function , (i am not sure) you put the dots to connect the both functions.

addCommandHandler ("s",
function (thePlayer)
  outputChatBox("".. getPlayerName(thePlayer) ..":Siema!")
end
)

Try this , i think that's the right form

Posted

I'm just happy that people respond on this forum. Because of you guys, i'm getting better at this. Thanks for responds, it means a lot for me.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...