ULX

Author Topic: Need help with some noob stuffs...  (Read 2761 times)

0 Members and 1 Guest are viewing this topic.

Offline Moka

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
Need help with some noob stuffs...
« on: March 05, 2013, 04:30:21 PM »
For some reason when a person leaves the game while holding the chat key they always seem to popup the same error that the entity returns null.
Any help? I tried ending the function if it returns null but it just breaks it.

Code: [Select]

tcolor = team.GetColor(self.ply:Team())
tcol          = Color( tcolor.r,tcolor.g,tcolor.b,100 )

if ( !IsValid( self.ply ) ) then return end
if  ( !self.ply:Alive() ) then
draw.RoundedBox( 4, 0, 0, w, h, Color( 0, 0, 0, 100 ) )
return
end

draw.RoundedBox( 4, 0, 0, w, h, tcol )

And I can never seem to fix the error when I am creating a HUD I try to draw the players health but when the player dies it just said clip1 return null value.

Offline Valgoid

  • Full Member
  • ***
  • Posts: 103
  • Karma: -15
  • Wanna Be Lua King
Re: Need help with some noob stuffs...
« Reply #1 on: June 06, 2014, 02:30:09 PM »
The code looks fine...
I don't know why that happens. How do you know for sure that this happens when someone is holding the chat key?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Need help with some noob stuffs...
« Reply #2 on: June 06, 2014, 03:00:41 PM »
Valgoid, be a bit careful, you've necro'd some posts that really have no need to be necro'd.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Valgoid

  • Full Member
  • ***
  • Posts: 103
  • Karma: -15
  • Wanna Be Lua King
Re: Need help with some noob stuffs...
« Reply #3 on: June 07, 2014, 11:12:05 PM »
Necro'd? Sorry xD What does that mean?

Edit: Got it, I'm sorry havent been looking at the dates, just been trying to help, so if anyone has same problem they can look at post and stuff. Sorry.
« Last Edit: June 07, 2014, 11:15:09 PM by Valgoid »

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: Need help with some noob stuffs...
« Reply #4 on: June 07, 2014, 11:14:11 PM »
Necro'd? Sorry xD What does that mean?

Posting on a thread that hasn't been posted on for 30 days. Basically bringing it back to life.
Check the dates on threads before posting.  ;)
Out of the Garry's Mod business.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Need help with some noob stuffs...
« Reply #5 on: June 08, 2014, 11:31:51 PM »
Neku, 30 days isn't really that bad.
Especially in a (usually) slower forum like Ulysses).
We really don't mind if someone is bringing definitive new information that would be helpful to everyone.

But, this one was over a year.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: Need help with some noob stuffs...
« Reply #6 on: June 08, 2014, 11:57:31 PM »
Neku, 30 days isn't really that bad.
Especially in a (usually) slower forum like Ulysses).
We really don't mind if someone is bringing definitive new information that would be helpful to everyone.

But, this one was over a year.

30 is the usual limit I see on a bunch of other forums. I was unsure about this one.
Out of the Garry's Mod business.