Search Unity

uNet Making a chat

Discussion in 'UNet' started by UnityUser9860, Dec 27, 2017.

  1. UnityUser9860

    UnityUser9860

    Joined:
    Dec 8, 2015
    Posts:
    179
    Im trying to add chat to my multiplayer game in uNet this is my code Howether only clients can send messages, when the server tries it does nothing but the debug line in the command fucntion says it was called?

    Could someone please help, thank you!
     
  2. UnityUser9860

    UnityUser9860

    Joined:
    Dec 8, 2015
    Posts:
    179
  3. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    You should post your code in the forum using CODE tags. No one is going to want to download your code to their computer from your link.
     
  4. UnityUser9860

    UnityUser9860

    Joined:
    Dec 8, 2015
    Posts:
    179
    Its paste bin xD its in the browser
     
  5. UnityUser9860

    UnityUser9860

    Joined:
    Dec 8, 2015
    Posts:
    179
  6. Zante

    Zante

    Joined:
    Mar 29, 2008
    Posts:
    429
    That doesn't look like it's being properly validated though. In your example, a hacker could obtain complete control over the chat log.

    It's better to send an incremental message by itself rather than a modified full history.