General > Developers Corner
I need help with hud! :((
M0NstR:
Hi there! Forgive me if the question will seem incomprehensible and sorry for my bad English.
I tried to translate Midnight HUD from English to Russian, but I was able to translate only Innocent, but Traitor and Detective doesn't work.
Console error, look:
[ULib] lua/cl_hud_mnhud.lua:268: bad argument #3 to 'SetDrawColor' (number expected, got no value)
1. SetDrawColor - [C]:-1
2. BorderedRect - lua/cl_hud_mnhud.lua:268
3. ShouldDraw - lua/cl_hud_mnhud.lua:865
4. fn - lua/cl_hud_mnhud.lua:906
5. unknown - lua/ulib/shared/hook.lua:110
What should I do with this?
iViscosity:
We can't give you any help if you don't give us the code you're having trouble with. surface.SetDrawColor requires at least 3 number arguments, and yours is saying it has no argument in it's third spot (the b in an r, g, b colour).
M0NstR:
check this :'(
Can I send all this code, if you need?
iViscosity:
I'd need the whole code. To know, I'd have to find where 'main' is defined and being called (most likely line 865). Please copy it all and use the tags around the paste, please.
M0NstR:
ready!
I tried to copy, but there was an error: 20000 characters
Navigation
[0] Message Index
[#] Next page
Go to full version