View Single Post
  #13  
Old 08-04-2011, 01:30 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Gunderak View Post
iv finally got all that working correctly. now to get the add text right its not working.
it now displays the message to all players. once u chat it sets server.temp.chat to ur chat and server.temp.nick to your nick and then adds the chat but on the add chat because its clientside its not reading server.temp.nick or server.temp.chat..
any suggestions?
im completly stuck, almost to the point of pulling my hair out.
First, server. variables are only accessible serverside. You're looking for serverr. variables, which can only be written serverside but are readable clientside.

Second,

Quote:
Originally Posted by Mark Sir Link View Post
this is not the approach you should be using at all
Use onRemotePlayerChats(temp.pl, temp.chat) on clientside instead. I don't understand your obsession with storing everything in server variables. There are very, very few instances where using server variables is advisable.
__________________

Last edited by cbk1994; 08-04-2011 at 02:16 PM..
Reply With Quote