Lua error with my sb_row.lua file

[ERROR] gamemodes/terrortown/gamemode/vgui/sb_row.lua:42: ‘(’ expected near ‘">vgui.Create("’

  1. unknown - gamemodes/terrortown/gamemode/vgui/sb_row.lua:0

thats the error I get. Does anyone know what is causing the errors. There are so many lua errors I can’t join the game.

There seems to be alot of these ‘(’ expected’ issues.

Post your code and use logic. The error is telling you the problem.

There is also only one error (as far as I can tell from what you posted), you are just getting it every tick.

i think it’s this part of the code but how do i exactly fix it

self.tag = function">vgui.Create(“DLabel”, self)
self.tag:SetText("")
self.tag:SetMouseInputEnabled(false)

Here is the forum link to where I got the code: http://www.zombiemaster.org/smf/index.php?topic=12370.0

Replace those three lines with this:



  self.tag = vgui.Create("DLabel", self)
   self.tag:SetText("")
   self.tag:SetMouseInputEnabled(false)

different error now happening the old one is fixed :confused:

[ERROR] gamemodes/terrortown/gamemode/vgui/sb_row.lua:46: ‘=’ expected near ‘ord’

  1. unknown - gamemodes/terrortown/gamemode/vgui/sb_row.lua:0

[editline]17th January 2014[/editline]

nvm i went back to original code its fixed