Help me tag mistach
warning 19: tag mismatch
line: if (!is_user_admin(id) & ADMIN_RESERVATION) why this happens? i'm trying to make my own plugins but i'm still a newbie in pawn, can you help me? |
Re: Help me tag mistach
is_user_admin() only tells you if the player is an admin (if they have any flags other than the "z" flag they will be considered an admin by this function; see amxmisc.inc).
If you want to check the flags for a person, you need to use get_user_flags() to get the integer that represents all of the flags that a player has and then use the bit-wise AND to determine if they have a particular flag. So, to check if they have the reservation flag, you do this: Code:
if( get_user_flags(i) & ADMIN_RESERVATION ) |
Re: Help me tag mistach
I want to check if he don't have the flag, can you help me to do it?
|
Re: Help me tag mistach
You can do this
PHP Code:
PHP Code:
|
Re: Help me tag mistach
Thanks!
|
| All times are GMT -4. The time now is 21:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.