Next Page
#1

guys how i can make in my Menu ''Next Page'' atm i have 18 weapons and command /buyw when i type this command it show just hafl of them or something like this ... any help ?

if you need to see something from my code tell and i i will post

ty
Reply
#2

Just open a new menu in this current row.
Reply
#3

i dont udnerstand you ... my problem is when i type /buyw it show just half of my 18 weapons so i must make next page on my menu and i must know how to do that ?
Reply
#4

Quote:
Originally Posted by MenaceX^
Just open a new menu in this current row.
can u make example ?
Reply
#5

you can add 12 items with AddMenuItem to a menu.

make 2 menus, both containing 8 weapons. add "Next page" to your first menu
that will take you to your second menu
Reply
#6

i will try to make ty
Reply
#7

code?
I'll give you the process
Код:
Create two menu
menu 1 has 9 weapons, and "next page"
menu 2 has 9 weapons, and "previous page"
when player selected "next page", use code ShowMenuForPlayer(menu2,playerid)
when player selected "previous page", use code ShowMenuForPlayer(menu1,playerid)
Last process, is DIY
Reply
#8

Quote:
Originally Posted by yezizhu
code?
I'll give you the process
Код:
Create two menu
menu 1 has 9 weapons, and "next page"
menu 2 has 9 weapons, and "previous page"
when player selected "next page", use code ShowMenuForPlayer(menu2,playerid)
when player selected "previous page", use code ShowMenuForPlayer(menu1,playerid)
Last process, is DIY
ye now i got it but here is another problem

i have 1. menu called '' weaponmenu''

with some weapons ofc like pistols some shot guns but i wanna make next page...
my next page now work but the problem is how i can do the functions for my ''nextpage'' menu under OnPlayerSelectedMenuRow

atm i have

Код:
public OnPlayerSelectedMenuRow(playerid, row)
{
  new Menu:CurrentMenu = GetPlayerMenu(playerid);
	if (CurrentMenu == weaponmenu)
{
  switch(row)
  {
but how i can make ''cases'' for my ''nextpage'' menu ... so when player will chose weapon he will get weapon ... i mean how i can make this functions for my other menu ... can u just show me example ?

ty and i hope you can understand me at my broken english

ty
Reply
#9

Create 2 menus, like: "weaponmenu1" and "weaponmenu2".

When player chooses Next Page on "weaponmenu1" then show him weaponmenu2.

For first menu use:

pawn Код:
if (CurrentMenu == weaponmenu1)
{
  switch(row)
  {
For second menu use:

pawn Код:
if (CurrentMenu == weaponmenu2)
{
  switch(row)
  {
Reply
#10

Quote:
Originally Posted by MadeMan
Create 2 menus, like: "weaponmenu1" and "weaponmenu2".

When player chooses Next Page on "weaponmenu1" then show him weaponmenu2.

For first menu use:

pawn Код:
if (CurrentMenu == weaponmenu1)
{
  switch(row)
  {
For second menu use:

pawn Код:
if (CurrentMenu == weaponmenu2)
{
  switch(row)
  {
And
Код:
case 9:ShowMenuForPlayer(weaponmenu2(or weaponmenu1),playerid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)