ok haha i have no idea what im doing, i have this now
PHP Code:
for (new i = 0; i < hmenu[itemct]; ++i) {
ReadPackString(hmenu[items], cmd, sizeof(cmd));
ReadPackString(hmenu[items], desc, sizeof(desc));
new drawstyle = ITEMDRAW_DEFAULT;
if (strlen(cmd) == 0) {
drawstyle = ITEMDRAW_DISABLED;
AddMenuItem(cmenu, cmd, desc, drawstyle);
} else {
if CheckCommandAccess(client, cmd, ADMFLAG_RCON)
AddMenuItem(cmenu, cmd, desc, drawstyle);
else {
drawstyle = ITEMDRAW_DISABLED;
AddMenuItem(cmenu, cmd, desc, drawstyle);
}
}
}
ResetPack(hmenu[items]);
DisplayMenu(cmenu, param1, 30);
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? -.-