Raised This Month: $ Target: $400
 0% 

error 10 (cs_get_user_armor)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 08-26-2013 , 16:35   Re: error 10 (cs_get_user_armor)
Reply With Quote #5

Quote:
Originally Posted by ^SmileY View Post
Remember: is_user_alive enforcing a is_user_connected, so you do not need to check is_user_connected it is only is_user_alive



Post full code to better resolution, but you need like this

if(Level[id] == 69)

change to

if((Level[id] == 69) && is_user_alive(id))
Since Level[id] is checked before is_user_alive() you may get an index out of bounds error on Level[].
They should be switched for best result.
__________________
Black Rose 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 18:52.


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