I want to send a variable using socket_send_String(). How do I correctly pass this into the socket command?
Var1 = 3 (Type:INT)
socket_send_string(“The value is: +Var1”,“mysocket”)
This example is definitely wrong.
Try: socket_send_string(“The value is: " + to_str(Var1), “mysocket”)
You can make this as complicated as needed: socket_send_string(“text” + StringVar + to_str(NonStringVar) + “text”, “socket”)
Thank You.
I will test that.