Raised This Month: $ Target: $400
 0% 

native error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-04-2013 , 10:38   Re: native error
Reply With Quote #1

Quote:
Originally Posted by DeagLe.Studio View Post
Code:
#define fm_get_entity_visibility(%1) (!(pev(%1, pev_effects) & EF_NODRAW))
To
Code:
#define fm_get_entity_invisibile(%1) (pev(%1, pev_effects) & EF_NODRAW)
and

Code:
if (g_NewIndexList[arraypos] && fm_get_entity_visibility(g_NewIndexList[arraypos]))
TO
Code:
if (g_NewIndexList[arraypos] && !fm_get_entity_invisibile(g_NewIndexList[arraypos]))
All that will do is make the code harder to understand because the name of the macro would be incorrect in terms of readability.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-05-2013 , 03:46   Re: native error
Reply With Quote #2

Now that the whole code is there, you have to check if an entity is valid before using any pev() command or any command that uses pev().
__________________

Last edited by fysiks; 06-05-2013 at 03:47.
fysiks 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 16:25.


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