Raised This Month: $ Target: $400
 0% 

Out of bounds error in clientPrethink. Would appreciate some help.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-09-2012 , 17:21   Re: Out of bounds error in clientPrethink. Would appreciate some help.
Reply With Quote #4

Problem is not to use bits, problem is to cache the value on some forwards that may not be reliable depending on what others plugins do, as revive a player without sending a reliable message/function, or kill a player without any notifiaction to other plugins.
That's why is_user_alive check is better.

Also, FindEntityInSphere returns entities indexes higher than players indexes, higher than 32.
When you perform the check IsUserAlive with such indexes, you "transform" that ent index in a mask so check can return 1, that's why you shouldn't use bits.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
 



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 15:07.


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