SA-MP Forums Archive
Help with Menu - 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: Help with Menu (/showthread.php?tid=119967)



Help with Menu - Nakki - 10.01.2010

i maked menu.. and it gives erroes like this
(66) : error 017: undefined symbol "barmenu"
i maked
Код:
new Menu:barmenu;
and
Код:
 barmenu = CreateMenu("Bar Menu", 2, -2443.0635,754.2624,35.0, 150.0);
   AddMenuItem(barmenu, 0, "something");
   AddMenuItem(barmenu, 0, "something2");
and what is now do? no working.. it gived errors


Re: Help with Menu - [HiC]TheKiller - 10.01.2010

Where is
pawn Код:
new Menu:barmenu;
Located in your script?


Re: Help with Menu - Nakki - 10.01.2010

I fixed it myself



Re: Help with Menu - Nakki - 10.01.2010

how about that marker ? and when go to marker it give menu..?


Re: Help with Menu - Jakku - 10.01.2010

Quote:
Originally Posted by Nakki
how about that marker ? and when go to marker it give menu..?
For a marker, I recommend you to download a checkpoint streamer. You can create only one marker without a streamer, do it with pickups

Example:

pawn Код:
new pickup;

pickup = CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld);

public OnPlayerPickUpPickup(playerid, pickupid)
{
  if(pickupid == pickup) ShowMenuForPlayer(MenuID,playerid);
}