SA-MP Forums Archive
Script problem (/guide takes you to wrong place) - 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: Script problem (/guide takes you to wrong place) (/showthread.php?tid=169248)



Script problem (/guide takes you to wrong place) - Darklom - 18.08.2010

Well when you do /guide and press "CellPhone Company" it takes you to the black market and that's the only problem I have
Here's the script
Код:
Guide2M = CreateMenu("Locations", 1, 50.0, 180.0, 200.0, 200.0);
	AddMenuItem(Guide2M, 0, "Driver License Place (DMV)");
	AddMenuItem(Guide2M, 0, "Police Station");
	AddMenuItem(Guide2M, 0, "Gas Station");
	AddMenuItem(Guide2M, 0, "Materials Factory");
	AddMenuItem(Guide2M, 0, "Black Market");
	AddMenuItem(Guide2M, 0, "Cellphone Company");
	AddMenuItem(Guide2M, 0, "Exit");
That's all the comes out when I try searching "Cellphone Company" and I need to edit the location to
Код:
 AddPlayerClass(240,1631.7738,-1166.0717,24.0781,184.8052,0,0,0,0,0,0); // Cell Phone
Here's the IP to test it 174.34.131.138:7777


Re: Script problem (/guide takes you to wrong place) - ScottCFR - 18.08.2010

If you're using 0.3a or 0.3b you have the simpler dialog system. Unfortunately menus were before my time as a scripter. So I cannot do more then say "Use Dialogs!".


Re: Script problem (/guide takes you to wrong place) - Darklom - 18.08.2010

Got fixed.