Raised This Month: $51 Target: $400
 12% 

Prevente "MSG_ONE or MSG_ONE_UNRELIABLE with no target entity"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
padilha007
Senior Member
Join Date: Jul 2008
Old 06-04-2009 , 19:50   Prevente "MSG_ONE or MSG_ONE_UNRELIABLE with no target entity"
Reply With Quote #1

exist one way to prevente this error?
__________________

padilha007 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-04-2009 , 19:51   Re: Prevente "MSG_ONE or MSG_ONE_UNRELIABLE with no target entity"
Reply With Quote #2

That is caused by using message_begin(MSG_ONE[_UNRELIABLE], ..., ..., entity) where entity is not a valid entity.
To fix it, all you have to do is make sure that entity is valid, (if it is a player, would be best to check if is_user_connected()).
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
padilha007
Senior Member
Join Date: Jul 2008
Old 06-04-2009 , 20:29   Re: Prevente "MSG_ONE or MSG_ONE_UNRELIABLE with no target entity"
Reply With Quote #3

check class of entity should be correct to help?
__________________

padilha007 is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 06-04-2009 , 21:30   Re: Prevente "MSG_ONE or MSG_ONE_UNRELIABLE with no target entity"
Reply With Quote #4

Quote:
Originally Posted by padilha007 View Post
check class of entity should be correct to help?
Exolent means is_valid_ent or pev_valid. Retrieve the class of an invalid ent wouldn't work.
__________________
joaquimandrade is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode