Hey guys,
I have an question and i hope it can be fixed
I want to add Next and Back Function
Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin("Plugin","1.0","KuNh4")
register_menucmd(register_menuid("Menu_Example"),1023,"Menu_1");
}
public Menu_1(id)
{
static szMenuBody[256];
if(!szMenuBody[0])
{
new len = format(szMenuBody,255,"\rExample:^n");
len += format(szMenuBody[len],255-len,"^n\y1. Radio");
len += format(szMenuBody[len],255-len,"^n\y2. Shop");
len += format(szMenuBody[len],255-len,"^n\y7. Next");
len += format(szMenuBody[len],255-len,"^n\y8. Back");
len += format(szMenuBody[len],255-len,"^n\y9. Exit");
}
new keys = |1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|;
show_menu(id,keys,szMenuBody,-1,"Menu_Example");
}
public Menu_Example(id,key)
{
switch(key)
{
case 1:
{
show_motd(id,"radio.txt","Radio")
}
case 2:
{
client_cmd(id,"shop")
}
}
}
How can i do that ?
Thx !
Regards ^^,
EDITED :
CAN YOU GUYS FIX MY CODE PLEASE ? REgarDs !