Raised This Month: $75 Target: $400
 18% 

grey out menu entries


Post New Thread Reply   
 
Thread Tools Display Modes
napster_10
Senior Member
Join Date: May 2016
Old 05-24-2019 , 15:46   Re: grey out menu entries
Reply With Quote #11

ok haha i have no idea what im doing, i have this now

PHP Code:
for (new 0hmenu[itemct]; ++i) {
                        
ReadPackString(hmenu[items], cmdsizeof(cmd));
                        
ReadPackString(hmenu[items], descsizeof(desc));
                        new 
drawstyle ITEMDRAW_DEFAULT;
                        if (
strlen(cmd) == 0) {
                            
drawstyle ITEMDRAW_DISABLED;
                            
AddMenuItem(cmenucmddescdrawstyle);
                            } else {
            
                                if 
CheckCommandAccess(clientcmdADMFLAG_RCON
                                
AddMenuItem(cmenucmddescdrawstyle);
                                    else {
                                    
drawstyle ITEMDRAW_DISABLED;
                                    
AddMenuItem(cmenucmddescdrawstyle);
                                    }
                                
                            }
                        }
                        
ResetPack(hmenu[items]);
                        
DisplayMenu(cmenuparam130); 
when i try to compile it says error 017: undefined symbol "client" in this row
if CheckCommandAccess(client, cmd, ADMFLAG_RCON)

edit: eee ok i cant call the client in the menuhandler obv. only in ShowMainMenu so what now? -.-

Last edited by napster_10; 05-24-2019 at 16:49.
napster_10 is offline
Kolapsicle
Senior Member
Join Date: Oct 2014
Old 05-24-2019 , 23:30   Re: grey out menu entries
Reply With Quote #12

param1 usually represents a client in a menuhandler.
Kolapsicle is offline
napster_10
Senior Member
Join Date: May 2016
Old 05-25-2019 , 09:44   Re: grey out menu entries
Reply With Quote #13

WOW...thx man its actually working now

YOU
ARE
THE
MAN

have a lot of kids and spread them all over the world

Last edited by napster_10; 05-25-2019 at 17:23.
napster_10 is offline
Reply


Thread Tools
Display Modes

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 17:59.


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