Hello, I just started to script, and to start, I tried to make a small, useless script: In the chat, type /I *put in message*.
What should happen is that all players on the server will receive a chat message saying your name followed by your message, for example:
/I is making a strawberry cake. = Herrerarausaure is making a strawberry cake.
Teal = Chat command
Blue = Chat message (to all players)
I know that script was already done, (Bot's ui script), but I promise never publishing it. Now my problem is, with this code:
function servercmdI(%client, %message)
}
messageAll('', "<color:FFFF00>"@ %client.getPlayerName() @ " "@ %message);
}
Everything worked properly, except that only the first word after "/I" was displayed, the other words were ignored.
I know that my code is probably a bit weird with some beginner's errors, but I started from almost nothing (only basics from C coding)
My question is: How do you add more words?