Posted: 27th Jun 2021 6:39
I keep getting the following error when trying to send a message: "Failed to get message IP, Message ID 1 does not exists"
GetNetworkNumClients() return 2, showing that it has connected with the server.
Server show 2 too when printing GetNetworkNumClients()...
Then I hit 'Z' to send the message...

+ Code Snippet
hostid = JoinNetwork("127.0.0.1", 4001, "Client_1")
ServerID = GetNetworkServerID(hostid)
do
	
	if GetRawKeyPressed(90) = 1
		newMsg = CreateNetworkMessage()
		AddNetworkMessageInteger(newMsg, 71)
		SendNetworkMessage(hostid, ServerID, newMsg)
		DeleteNetworkMessage(newMsg)
		
	endif
	
	Print(GetNetworkNumClients(hostid))
	sync()
loop


The problem happen when SendNetworkMessage() is called...

is it a localhost issue?

Any help appreciated!

Update: I discovered the problem lie with the server... after I have it run on another computer... the problem is solve now! The message box info is so confusing and... lacking!
Posted: 9th Jul 2021 8:42
If you face any problems again post here I will help you .