For the life of me I can't work out why this won't work.
Error:
[CODE][ERROR] lua/client.lua:1: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
1. Start - [C]:-1
2. unknown - lua/client.lua:1
[/CODE]
Server code:
[CODE]util.AddNetworkString("report")
net.Receive("report",function(len,ply)
print("report")
end)[/CODE]
Client code:
[CODE]net.Start("report")
net.SendToServer()[/CODE]
You must give util.AddNetworkString a few frames before it's effects are networked to all clients.
This means that you cannot send a message at the exact same time util.AddNetworkString is called.
[QUOTE=Robotboy655;49743544]You must give util.AddNetworkString a few frames before it's effects are networked to all clients.
This means that you cannot send a message at the exact same time util.AddNetworkString is called.[/QUOTE]
That was pretty simple. Thanks for your help.
Sorry, you need to Log In to post a reply to this thread.