ULX

Author Topic: I need help with hud! :((  (Read 2106 times)

0 Members and 1 Guest are viewing this topic.

Offline M0NstR

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
I need help with hud! :((
« on: January 25, 2017, 02:12:27 PM »
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?

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: I need help with hud! :((
« Reply #1 on: January 25, 2017, 02:21:12 PM »
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).
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline M0NstR

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: I need help with hud! :((
« Reply #2 on: January 25, 2017, 02:33:06 PM »
check this  :'(
Can I send all this code, if you need?

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: I need help with hud! :((
« Reply #3 on: January 25, 2017, 02:49:36 PM »
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.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline M0NstR

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: I need help with hud! :((
« Reply #4 on: January 25, 2017, 02:54:07 PM »
ready!
I tried to copy, but there was an error: 20000 characters
« Last Edit: January 25, 2017, 02:55:41 PM by M0NstR »

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given