• On open Traitor menu - Bad argument #1 to GetTextSize
    2 replies, posted
Alright so when I open the Traitor menu in TTT I get this error over and over [code] [ERROR] lua/includes/modules/draw.lua:273: bad argument #1 to 'GetTextSize' (string expected, got nil) 1. GetTextSize - [C]:-1 2. Text - lua/includes/modules/draw.lua:273 3. drawfn - lua/includes/modules/draw.lua:314 4. unknown - gamemodes/terrortown/gamemode/vgui/simpleicon.lua:225 TEST [lua/includes/modules/json.lua][lua/includes/modules/draw.lua] TEST [lua/includes/modules/json.lua][lua/includes/modules/draw.lua] [ERROR] lua/includes/modules/draw.lua:273: bad argument #1 to 'GetTextSize' (string expected, got nil) 1. GetTextSize - [C]:-1 2. Text - lua/includes/modules/draw.lua:273 3. drawfn - lua/includes/modules/draw.lua:314 4. unknown - gamemodes/terrortown/gamemode/vgui/simpleicon.lua:225 TEST [lua/includes/modules/json.lua][lua/includes/modules/draw.lua] TEST [lua/includes/modules/json.lua][lua/includes/modules/draw.lua] [/code]
Check gamemodes/terrortown/gamemode/vgui/simpleicon.lua at line 225, looks like the function is incomplete
this will bring more errors, but for fix that, go to the line 225 and replace GetTextSize( text ) wth GetTextSize( text or "")
Sorry, you need to Log In to post a reply to this thread.