I need help with the chat

Posted by Freeko
Hello everyone! And Size43 for your help in my previous question. First, look my code:

if (!room=room_menu or !room=room_charsel and global.displayChat = 0) {



The problem is when I execute my game, the chat not appears in the room, I have an error in my code? I already read all help about the chat functions, and the error is persistent... Thanks for your time for help me in my question...

Replies (4)

Last message on 4 Mar 2016

Size43 (Administrator) on 3 Mar 2016, 09:51:55
By calling

you're disabling the chat. You'll need to call
instead to enable the chat.
Freeko (Topicstarter) on 4 Mar 2016, 01:06:04
I have another problem, when I press "enter" to open the chat box, nothing happens. If you can help me, thanks.
Size43 (Administrator) on 4 Mar 2016, 13:55:24
Are you calling gms_chat_keys anywhere?
Freeko (Topicstarter) on 3 Mar 2016, 20:56:46
Oh, ok, thanks! I thought that "0" means "true" but is wrong.