[SOLVED] menu callback trouble
ive got the callback working for admin check... its disabled when your not admin....
but when player is ALIVE it still shows menu item in white and showing enabled.... PHP Code:
PHP Code:
|
Re: menu callback trouble
"data" does not contain the player's id.
|
Re: menu callback trouble
Quote:
why would it work for one but not the other? |
Re: menu callback trouble
Quote:
|
Re: menu callback trouble
Quote:
|
Re: menu callback trouble
you doesn't show the g_AdminCallback code.
|
Re: menu callback trouble
PHP Code:
|
Re: menu callback trouble
As a side note, for admin items you don't need to make a callback.
Code:
/**PHP Code:
PHP Code:
2nd tip, you don't need to get item info and ton convert it to an integer to retrieve key, just use item instead : PHP Code:
PHP Code:
|
Re: menu callback trouble
@Conner. Thanks for your help... and i understood it fairly easy.
PHP Code:
thanks everyone @fysiks. i now understand what you meant about the DATA not containing players ID. |
Re: menu callback trouble
Quote:
Edit : Damn, bad morning... I just modified from ADMIN_ADMIN to ADMIN_MENU and it's working. *Case solved* |
| All times are GMT -4. The time now is 13:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.