Ulysses

General => Developers Corner => Topic started by: Moka on March 05, 2013, 04:30:21 PM

Title: Need help with some noob stuffs...
Post by: Moka 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.
Title: Re: Need help with some noob stuffs...
Post by: Valgoid 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?
Title: Re: Need help with some noob stuffs...
Post by: JamminR 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.
Title: Re: Need help with some noob stuffs...
Post by: Valgoid 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.
Title: Re: Need help with some noob stuffs...
Post by: Neku 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.  ;)
Title: Re: Need help with some noob stuffs...
Post by: JamminR 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.
Title: Re: Need help with some noob stuffs...
Post by: Neku 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.