AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Prevente "MSG_ONE or MSG_ONE_UNRELIABLE with no target entity" (https://forums.alliedmods.net/showthread.php?t=93960)

padilha007 06-04-2009 19:50

Prevente "MSG_ONE or MSG_ONE_UNRELIABLE with no target entity"
 
exist one way to prevente this error?

Exolent[jNr] 06-04-2009 19:51

Re: Prevente "MSG_ONE or MSG_ONE_UNRELIABLE with no target entity"
 
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()).

padilha007 06-04-2009 20:29

Re: Prevente "MSG_ONE or MSG_ONE_UNRELIABLE with no target entity"
 
check class of entity should be correct to help?

joaquimandrade 06-04-2009 21:30

Re: Prevente "MSG_ONE or MSG_ONE_UNRELIABLE with no target entity"
 
Quote:

Originally Posted by padilha007 (Post 841828)
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.


All times are GMT -4. The time now is 14:03.

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