http://img35.imageshack.us/img35/4818/ughl.png
Causes my game to completely close down. Happens when I walk out of an entity.
[lua]
function ENT:EndTouch( Entity )
if !Entity:IsPlayer() then
return
end
if self.SetUpSuccess == false then
return
end
local rp = RecipientFilter()
rp:AddAllPlayers()
if !self.Data then return end
umsg.Start( "SendPlayerPortalInfo", rp)
umsg.String( Entity:Nick() )
umsg.String( self.Data["SubCat"] )
umsg.String( self.Data["Server"] )
umsg.String( self.Data["Cat"] )
umsg.String( self.Data["IP"] )
umsg.End()
end
[/lua]
All of my table values are valid strings too. I just did a test. Seems to be the user message that’s doing it.
Here’s what’s going on clientside:
[lua]
usermessage.Hook(“SendPlayerPortalInfo”, function(um)
local ply = um:ReadString()
local subcat = um:ReadString()
local server = um:ReadString()
local cat = um:ReadString()
local ip = um:ReadString()
local c_ply = Color( 255, 0, 0 )
local c_words = Color( 255, 255, 255 )
local c_subcat = Color( 230, 230, 0 )
local c_server = Color( 50, 50, 255 )
local c_cat = Color( 230, 230, 150 )
local c_ip = Color( 150, 230, 150 )
chat.AddText( c_ply, ply, c_words, " has gone to the ", c_server, server, c_words, " server via the ", c_subcat, subcat.." ", c_cat, cat, c_words, " portal! ", c_ip, "IP: "..ip, c_words, ".")
end)
[/lua]
What in the fuck is going on here?