SA-MP Forums Archive
samp-server.exe closes when stepping on pickup - 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: samp-server.exe closes when stepping on pickup (/showthread.php?tid=70177)



samp-server.exe closes when stepping on pickup - zanakinz - 22.03.2009

It has something to do the way i set it up?? can some1 tell me whats wrong with the codes i used??
Код:
public ShowMenuMafia()
{
	MafiaMenu1 = CreateMenu("Mafia Teleports", 2, 125, 150, 300);
	AddMenuItem(MafiaMenu1, 0, "Roof");
	AddMenuItem(MafiaMenu1, 1, "Hq Roof");
	AddMenuItem(MafiaMenu1, 0, "Graveyard");
	AddMenuItem(MafiaMenu1, 1, "Hq Graveyard");
}
Код:
		if(Current == Mafia)
	{
	  switch(row)
	  {
	    case 0:
			{
				SetPlayerPos(playerid,2129.7820,-2280.5945,27.3034);
				SendClientMessage(playerid, COLOR_LIGHTRED, "Welcome To LFS's Hq Roof");
			}
			case 1:
			{
			  SetPlayerPos(playerid,816.0439,-1100.3785,25.7906);
 				SendClientMessage(playerid, COLOR_LIGHTRED, "Welcome To LFS's Hq Cemetary");
			}
	  }
	}



Re: samp-server.exe closes when stepping on pickup - GtakriZ - 22.03.2009

The code you have posted does not reffer to the problem that appears to the topic's title..


Re: samp-server.exe closes when stepping on pickup - zanakinz - 23.03.2009

Yea it actually does... its cuz that code is fucked up i dont know how to fix so im asking you guys (the community) to fix it


Re: samp-server.exe closes when stepping on pickup - Redirect Left - 23.03.2009

try posting the code on OnPlayerPickupPickup.


Re: samp-server.exe closes when stepping on pickup - ICECOLDKILLAK8 - 23.03.2009

He did have the OnPlayerPickupPickup code pasted but he seems to have edited his first post, As far as i could see there was no problem with his OnPlayerPickupPickup code as all it contained was a ShowMenuForPlayer(FirstPostCode) and a SetPlayerPos


Re: samp-server.exe closes when stepping on pickup - Pyrokid - 23.03.2009

Well the menu is created as MafiaMenu1 but the define for Current in the next code is just Mafia.

Also, the ShowMenuMafia function is creating the menu, not showing it. All the code in that function should be in OnGameModeInit.