SA-MP Forums Archive
Weapon Menu Sells double - 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: Weapon Menu Sells double (/showthread.php?tid=164987)



Weapon Menu Sells double - Rolyy - 02.08.2010

Title says it all, Example:
When I walk into the pickup id of WeaponMenu1 then it shows me a menu which works perfectly, when i purchase 1 weapon and it sells me 2 times. Instead of 1 time.
so
2x -$5000
2x Texture (you have bought this weapon blablabla,
2x 60 ammo
etc.

Script code:

Код:
	if(pickupid == WeaponMenu1)
        {
		ShowPlayerDialog(playerid, wmenu, DIALOG_STYLE_LIST, "Weapon Shop Menu","Pistols\nShotgun\nMicro SMGs\nAssault\nSniper\nArmour", "Open", "Close");
        }
Код:
	if(dialogid == wmenu)
	{
		if(response)
		{
	    	if(listitem == 0)
	    	{
	        	ShowPlayerDialog(playerid, wmenu+1, DIALOG_STYLE_LIST, "Pistols", "
...
...
...
...
...
...
...
...
...
...
...
...
	        		        		        		    , "Open", "Close");
			}
			return 1;
		}
	}
	}