kevin11 Posted June 15, 2010 Share Posted June 15, 2010 i want that the message just shows to the player with skin 162 but its not working and no errors function delayedChat ( text ) local skin = getPlayerSkin ( player ) if skin == 162 then outputChatBox ( "" .. text ) end setTimer ( delayedChat, 1, 1, "welcome!" ) end Link to comment
50p Posted June 16, 2010 Share Posted June 16, 2010 Why it doesn't work? Be more precise. You can't set timer with 1ms interval. You need player element for outputChaBox to send message only to that player. What is player in your function? You MUST learn about function parameters/arguments and types of them. Link to comment
dzek (varez) Posted June 16, 2010 Share Posted June 16, 2010 startover with lua learning.. check wiki and robhol's guide Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now