• ERROR: GAMEMODE:'HUDPaint' Failed
    5 replies, posted
Hi, getting the following error but can't tell what's causing it. "ERROR: GAMEMODE:'HUDPaint' Failed: [@lua\includes\modules\draw.lua:103] bad argument #1 to 'DrawText' (string expected, got nil) ERROR: GAMEMODE:'HUDPaint' Failed: [@lua\includes\modules\draw.lua:103] bad argument #1 to 'DrawText' (string expected, got nil)" Any idea how I can find the culprit? [B]EDIT: FIXED[/B]
posting your code might help [editline]asd[/editline] and use [noparse][code][/code][/noparse] tags
Can we see your HUDPaint? [editline]24th July 2012[/editline] ninja'd
[code] draw.SimpleText("Name:", "Nameofperson", 25 + 30,ScrH() - 155, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP) draw.SimpleText("Cash:", "Cash", 25 + 30,ScrH() - 135, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP) draw.SimpleText("Salary:", "Salary", 25 + 30,ScrH() - 115, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP) draw.SimpleText("Role:", "Role", 25 + 30,ScrH() - 95, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP) draw.SimpleText("Health:", "Helath", 25 + 30,ScrH() - 75, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP) draw.SimpleText("$" .. v1,"TargetID", 70 + 30,ScrH() - 135, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP) draw.SimpleText("$" .. v2,"TargetID", 80 + 30,ScrH() - 115, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP) draw.SimpleText(LocalPlayer().DarkRPVars.job,"TargetID", 70 + 30,ScrH() - 95, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP) draw.SimpleText(LocalPlayer():Health() ,"TargetID", 80 + 30,ScrH() - 75, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP) [/code] Ok it's definitely something in there that's causing the errors.
DoActualHUD() GunLicense() Agenda() JobHelp() DrawVoiceChat() LockDown() Arrested() AdminTell() those?
I've pasted the full file
Sorry, you need to Log In to post a reply to this thread.