Ballasbuster Posted February 8, 2011 Share Posted February 8, 2011 Hello Dudes... I'm writing to you ,because i need help. My script is not working... This is code: string message, int messageType function onChat ( message, messageType ) if messageType == 0 then local root = getRootElement() outputChatBox ( getPlayerName ( source ) .. ": #00AA00" .. message, getRootElement(), g_Red, g_Green, g_Blue, true ) cancelEvent() outputServerLog( "CHAT: " .. getPlayerName ( source ).. ": " .. message ) end end addEventHandler ( "onPlayerChat", getRootElement(), onChat ) Please Help Me... (Sorry my bad English...) Link to comment
Aibo Posted February 8, 2011 Share Posted February 8, 2011 remove this, Lua is dynamically typed: string message, int messageType P.S. your function will create these variables local to itself anyway. Link to comment
Ballasbuster Posted February 8, 2011 Author Share Posted February 8, 2011 Okey , Thanks... But script does not work the way I wanted... On chat: Mefisto#00AA00: message Or: Mefisto: #00AA00message No colors ///Edit I repair This. Topic to close. 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