• Color Config Issues
    0 replies, posted
So during the process of making my HUD, I ran into a problem with the config. Basically what happens is when someone changes the color in the config it will not change unless changing something about the HUD's main frame.And yes I did include the config file into the main frame!!! Error: [code] [ERROR] lua/includes/modules/draw.lua:198: bad argument #3 to 'SetDrawColor' (number expected, got nil) 1. SetDrawColor - [C]:-1 2. RoundedBox - lua/includes/modules/draw.lua:198 3. serverNameBackground - addons/mattehud/lua/autorun/cl_main.lua:42 4. fn - addons/mattehud/lua/autorun/cl_main.lua:191 5. unknown - addons/ulib/lua/ulib/shared/hook.lua:179 [/code] Code for colors: [code] local color = {} blue = Color(0,141,223,255) green = Color(50,205,50) red = Color(178,34,34,255) yellow = Color(255,204,51,255) purple = Color(122,88,193,255) [/code] Code for Config: [code] --[[ Colors: blue green red yellow purple --]] color = green [/code] Entire code of main here: [URL="http://pastebin.com/JEpG7GEr"]http://pastebin.com/JEpG7GEr[/URL]
Sorry, you need to Log In to post a reply to this thread.