![]() |
Chat room issue
I am constructing a chat room system to get comfortable with using triggerserver and triggerclient. I am having some issues however. The chat won't appear on other players screens! I think the message is actually being sent to the serverside then back to the clientside because of a 0.5 second delay for the message to appear, but the other players in the chat room aren't actually receiving any messages. Here is the code.
PHP Code:
|
You are only sending the message to the player that triggered the server. To trigger all players in the chatroom, loop through them, and trigger them like so:
playerobj.triggerclient(stuff); |
So would I have to do...
PHP Code:
|
Something like this:
PHP Code:
|
This is how:
PHP Code:
if (temp.pl.clientr.chatroom == clientr.chatroom) Instead of sending it to everyone. |
Now, whenever you receive a new message, the scroll bar scrolls all the way to the right of the multi line box. Is there any way to disable the horizontal scroll bar?
I can't post the code because my browser gives a security risk error when I post it, so here is the Graal paste bin link. Code |
hscrollbar = "alwaysOn", "alwaysOff", "dynamic"
|
Quote:
|
| All times are GMT +2. The time now is 11:26 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.