You can leave off the \R as well but you dont want both register_menucmd()
cuz hes using one function so it would just be one register that gets used twice.
Code:
#include <amxmodx>
#include <amxmisc>
#define MENU_SIZE 256
new g_iMenuPosition = 0
public plugin_init() {
register_plugin("AFK KiSSS","3.0.0 Beta 1","Isobold")
register_menucmd(register_menuid("AFK KiSSS Menu:"),1023,"actionKiSSSMenu")
register_clcmd("say afkmenu","showKiSSSMenu",ADMIN_LEVEL_A,"- displays KiSSS menu")
//g_coloredMenus = colored_menus()
register_menucmd(register_menuid("\yAFK KiSSS Menu:"),1023,"actionKiSSSMenu")
//... dunno what you didnt show here
}
//... Or here..guessing more of the plug that has nothing to do with menus
// Menu
public showKiSSSMenu( id, lvl, cid )
{
if( cmd_access( id, lvl, cid, 0 ) )
KiSSSMenu( id, g_iMenuPosition = 0 )
return PLUGIN_HANDLED
}
public KiSSSMenu(id, pos)
{
if( pos < 0 ) return
new nNum = 16 //The number of commands
new szMenuBody[MENU_SIZE]
// Took out the color menu thing g_coloredMenus ? : "AFK KiSSS Menu: %d/2^n^n"
new iLen = format( szMenuBody, MENU_SIZE-1, "\yAFK KiSSS Menu:\R%d/%d^n\w^n", pos+1,(nNum / 8 + ((nNum % 8) ? 1 : 0 )) )
new iKeys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<7|1<<9)
if ( pos ) { //This is page 2
iLen += format( szMenuBody[iLen], (MENU_SIZE-1-iLen), "1. Glow Menu^n2. Bury Menu^n3. Disarm Menu^n4. Uberslap Menu^n5. Slay2 Menu^n6. Fire Menu^n7. Rocket Menu^n\d8. Weapon Menu^n" )
}
else { //This is page 1
iLen += format( szMenuBody[iLen], (MENU_SIZE-1-iLen), "1. Heal Menu^n2. Armor Menu^n3. Godmode Menu^n4. Noclip Menu^n5. Give Money Menu^n6. Take Money Menu^n7. Gag Menu^n8. Gravity Menu^n" )
}
//Cheack poss
if( !pos ) {
format( szMenuBody[iLen], (MENU_SIZE-1-iLen), "^n9. More...^n0. Exit")
iKeys |= (1<<8) //key 9 for more options
}
else
format( szMenuBody[iLen], (MENU_SIZE-1-iLen), "^n0. Back")
show_menu( id, iKeys, szMenuBody, -1 )
return
}
public actionKiSSSMenu(id, key)
{
switch( key )
{
case 8: KiSSSMenu( id, ++g_iMenuPosition ); // More Option
case 9: KiSSSMenu( id, --g_iMenuPosition ); // Back Option
// Chose a Player Wait theres no players involved here....? lol
default:
{
new option = (key + (g_iMenuPosition * 8))
KiSSSMenu(id,g_iMenuPosition);
switch (option) {
//page 1
case 0: { // 1
client_print(0, print_chat, "[AFK KiSSS]: Option 2 1");
}
case 1: { // 2
client_print(0, print_chat, "[AFK KiSSS]: Option 2 2");
}
case 2: { // 3
client_print(0, print_chat, "[AFK KiSSS]: Option 2 3");
}
case 3: { // 4
client_print(0, print_chat, "[AFK KiSSS]: Option 2 4");
}
case 4: { // 5
client_print(0, print_chat, "[AFK KiSSS]: Option 2 5");
}
case 5: { // 6
client_print(0, print_chat, "[AFK KiSSS]: Option 2 6");
}
case 6: { // 7
client_print(0, print_chat, "[AFK KiSSS]: Option 2 7");
}
case 7: { // 8
client_print(0, print_chat, "[AFK KiSSS]: Option 2 8");
}
//page 2
case 8: { // 1
client_print(0, print_chat, "[AFK KiSSS]: Option 3 1");
}
case 9: { // 2
client_print(0, print_chat, "[AFK KiSSS]: Option 3 2");
}
case 10: { // 3
client_print(0, print_chat, "[AFK KiSSS]: Option 3 3");
}
case 11: { // 4
client_print(0, print_chat, "[AFK KiSSS]: Option 3 4");
}
case 12: { // 5
client_print(0, print_chat, "[AFK KiSSS]: Option 3 5");
}
case 13: { // 6
client_print(0, print_chat, "[AFK KiSSS]: Option 3 6");
}
case 14: { // 7
client_print(0, print_chat, "[AFK KiSSS]: Option 3 7");
}
case 15: { // 8
client_print(0, print_chat, "[AFK KiSSS]: Option 3 8");
}
}
}
}
return PLUGIN_HANDLED
}