下面是我尝试自己写的能力菜单(详细内容就不多加写上)
register_menu("Human Point Menu", KEYSMENU, "menu_HPointMenu")
register_menu("Human Point Menu2", KEYSMENU, "menu_HPointMenu2")
public HPointMenu(id)
{
static menu[999], len
len = 0
len += formatex(menu[len], sizeof menu - 1 - len, "标题")
len += formatex(menu[len], sizeof menu - 1 - len, "\y1. 能力")
len += formatex(menu[len], sizeof menu - 1 - len, "\y2. 能力")
len += formatex(menu[len], sizeof menu - 1 - len, "\y3. 能力")
len += formatex(menu[len], sizeof menu - 1 - len, "\y4. 能力")
len += formatex(menu[len], sizeof menu - 1 - len, "\y5. 能力")
len += formatex(menu[len], sizeof menu - 1 - len, "\y6. 能力")
len += formatex(menu[len], sizeof menu - 1 - len, "\y7. 能力")
len += formatex(menu[len], sizeof menu - 1 - len, "\y8. 能力")
len += formatex(menu[len], sizeof menu - 1 - len, "\y9. \w下一页^n")
show_menu(id, KEYSMENU, menu, -1, "Human Point Menu")
}
public menu_HPointMenu(id,key)
{
switch(key)
{
case 0:
{
}
case 1:
{
}
case 2:
{
}
case 3:
{
}
case 4:
{
}
case 5:
{
}
case 6:
{
}
case 7:
{
}
case 8:
{
HPointMenu2(id)
}
}
}
public HPointMenu2(id)
{
static menu[999], len
len = 0
len += formatex(menu[len], sizeof menu - 1 - len, "标题")
len += formatex(menu[len], sizeof menu - 1 - len, "\y1. 能力")
len += formatex(menu[len], sizeof menu - 1 - len, "\y2. 能力")
len += formatex(menu[len], sizeof menu - 1 - len, "\y3. 能力")
len += formatex(menu[len], sizeof menu - 1 - len, "\y4. 能力")
len += formatex(menu[len], sizeof menu - 1 - len, "\y5. 能力")
len += formatex(menu[len], sizeof menu - 1 - len, "\y6. 能力")
len += formatex(menu[len], sizeof menu - 1 - len, "\y7. 能力")
len += formatex(menu[len], sizeof menu - 1 - len, "\y8. 能力")
len += formatex(menu[len], sizeof menu - 1 - len, "\y9. \w上一页^n")
show_menu(id, KEYSMENU, menu, -1, "Human Point Menu2")
}
public menu_HPointMenu2(id,key)
{
switch(key)
{
case 0:
{
}
case 1:
{
}
case 2:
{
}
case 3:
{
}
case 4:
{
}
case 5:
{
}
case 6:
{
}
case 7:
{
}
case 8:
{
HPointMenu(id)
}
}
}
但是测试后上下页的功能会重叠
就是如果选第一页的1
第二页的1也会跟着一起点....
教学区也没有教上下页的写法....
我想请问要如何把这两页合并改成像ZP丧尸类型&武器选择那种上下页的菜单类型??