SA-MP Forums Archive
Next Page - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Next Page (/showthread.php?tid=87353)



Next Page - Geekzor - 19.07.2009

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


Re: Next Page - MenaceX^ - 19.07.2009

Just open a new menu in this current row.


Re: Next Page - Geekzor - 19.07.2009

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 ?


Re: Next Page - Geekzor - 20.07.2009

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


Re: Next Page - M4S7ERMIND - 20.07.2009

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


Re: Next Page - Geekzor - 20.07.2009

i will try to make ty


Re: Next Page - yezizhu - 20.07.2009

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


Re: Next Page - Geekzor - 20.07.2009

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


Re: Next Page - MadeMan - 20.07.2009

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)
  {



Re: Next Page - yezizhu - 20.07.2009

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);