Hi! (I’m betting code_gs will respond to this one too :P)
I’m fresh into learning net.Send/net.Read. My goal is to send a number from server to client.
I tried using net.WriteInt(), but the number I’m sending over is a variable. When declaring the bit for net.ReadInt(), I didn’t know that to put down.
Trying to do a workaround, I wanted to try sending it via net.WriteString(). This works, but when I try to change it back into a number, it doesn’t return anything.
Question 1: If I use net.ReadInt(), what do I put for the bit amount knowing that the variable can be in the range of 100-30,000?
Question 2: Is it possible to translate a string into a number using net.ReadString()?
Thanks for any answers!