Hello.
In the client-side, I'm using this code, called when the player died:
[CODE]
function scmode()
net.Start("pdeath")
net.SendToServer()
end
[/CODE]
But when the player died, the console gives me this error:
[ERROR] addons/myscriptname/lua/autorun/client/myscriptname.lua:37: Calling net.Start with unpooled message name! [[url]http://goo.gl/qcx0y][/url]
1. Start - [C]:-1
2. unknown - addons/myscriptname/lua/autorun/client/myscriptname.lua:37
3. unknown - lua/includes/modules/concommand.lua:54
Someone can help me?
Thank You!
Try going to the link that the error gives?
You need to set util.AddNetworkString( "pdeath" ) on the server.
[url]http://wiki.garrysmod.com/page/util/AddNetworkString[/url]
[QUOTE=Moosicorn;50417057]You need to set util.AddNetworkString( "pdeath" ) on the server.
[url]http://wiki.garrysmod.com/page/util/AddNetworkString[/url][/QUOTE]
Thank you, i knew it, but I was in the client-side, where I can't use this code, i didn't know that I had to add it in Server-side.
Thank You!
Sorry, you need to Log In to post a reply to this thread.