AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Why wont this work? (https://forums.alliedmods.net/showthread.php?t=183403)

Bilal Pro 04-21-2012 12:51

Why wont this work?
 
PHP Code:

menu_additem(menuszText"1"get_user_team(id) == 2

My question is why wont this work, it compiles fine :O?

fysiks 04-21-2012 13:14

Re: Why wont this work?
 
The 4th argument is the access required to use that option. This is referring to the ADMIN_* variables, it's not a 1 or 0 (bool) thing.

I think you will need to use a callback instead of using the 4th argument for disabling for a certain team. And, before you ask, look in the menu tutorial for callbacks. I can't remember if Emp added it to his main post but if not then you need to search for Exolent's post about callbacks.


All times are GMT -4. The time now is 07:52.

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