Two Lua Error


[ERROR] lua/includes/extensions/net.lua:182: net.ReadType: Couldn't read type 215
  1. error - [C]:-1
   2. ReadType - lua/includes/extensions/net.lua:182
    3. func - addons/darkrpmodification/lua/darkrp_modules/eleganthud/cl_elegant.lua:771
     4. unknown - lua/includes/extensions/net.lua:32

[ERROR] addons/darkrpmodification/lua/darkrp_customthings/categories.lua:24: unexpected symbol near '='
  1. unknown - addons/darkrpmodification/lua/darkrp_customthings/categories.lua:0

Post cl_elegant.lua lines 750-780 and your categories.lua. Please use


 tags.

local function DisplayNotify(msg)
	local txt = msg:ReadString()
	GAMEMODE:AddNotify(txt, msg:ReadShort(), msg:ReadLong())
	surface.PlaySound("buttons/lightswitch2.wav")

	-- Log to client console
	print(txt)
end
usermessage.Hook("_Notify", DisplayNotify)

/*---------------------------------------------------------------------------
Update changed variables
---------------------------------------------------------------------------*/
local function updateDoorData()
	local door = net.ReadUInt(32)

	DarkRP.doorData[door] = DarkRP.doorData[door] or {}

	local var = net.ReadString()
	local valueType = net.ReadUInt(8)
	local value = net.ReadType(valueType)

	DarkRP.doorData[door][var] = value
end
net.Receive("DarkRP_UpdateDoorData", updateDoorData)

/*---------------------------------------------------------------------------
Remove doordata of removed entity
---------------------------------------------------------------------------*/
local function removeDoorData()

Can you post the matching network write code?

Sorry, what is this ?

Look for any code that calls net.WriteType.

If you’re not sure, search all files for “DarkRP_UpdateDoorData” and find the one with net.Start(“DarkRP_UpdateDoorData”).