Thread: AMXX Errors
View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-15-2012 , 19:43   Re: AMXX Errors
Reply With Quote #6

Quote:
Originally Posted by Liverwiz View Post
check is_user_connected(id)
You don't need to check for connected if you are only checking for alive.

Quote:
Originally Posted by Waleed View Post
I am checking:
Code:
is_user_admin(id)
Is it okay or do I have to check for user connection too O_O ?
I believe you do have to check connection for using that function. You can test it out. Just try it on an empty slot. If you get a runtime error then you need to check if they are connected first. If it simply returns false without errors then you don't need the extra check. It all really comes down to how get_user_flags() works.
__________________
fysiks is offline