samp-server.exe closes when stepping on pickup
#1

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");
			}
	  }
	}
Reply
#2

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

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
Reply
#4

try posting the code on OnPlayerPickupPickup.
Reply
#5

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
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)