General > Developers Corner

Need help with some noob stuffs...

(1/2) > >>

Moka:
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: ---
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 )

--- End code ---

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.

Valgoid:
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?

JamminR:
Valgoid, be a bit careful, you've necro'd some posts that really have no need to be necro'd.

Valgoid:
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.

Neku:

--- Quote from: Valgoid on June 07, 2014, 11:12:05 PM ---Necro'd? Sorry xD What does that mean?

--- End quote ---

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.  ;)

Navigation

[0] Message Index

[#] Next page

Go to full version