(CrashDetect) Dialog problem
#1

hello im using crashdetect.so i got this msg:
[19:23:44] Crash caused by an unknown error in ShowPlayerDialog at address 0x516e4
[19:23:44] Stack trace of gamemodes/SPAe.amx (most recent call first):

What this? and how can i solve it?

Here is the code of dialog

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == CMDS) //
	{
	if(response)
    {
	if(listitem == 0)
    	{
    	if(DMZone[playerid] == 1) return ShowPlayerDialog(playerid,TELEWARN,DIALOG_STYLE_MSGBOX,"Error:","Cars Error!\n\n- Sorry, But you can't Use this command while you in Dm Zone","OK","Leave Dm");
        if(!IsPlayerInAnyVehicle(playerid))
        {
    	new allvehicles[] = "\t{00FFEE}Airplanes\n\t{F81414}Helicopters\n\t{6EF83C}Bikes\n\t{F300FF}Convertibles\n\t{F3FF02}Industrial\n\t{FFAF00}Lowriders\n\t{FBDF89}OffRoad\n\t{00C0FF}Public Service Vehicles\n\t{FFFFFF}Saloons\n\t{A3E4FF}Sport Vehicles\n\t{C9FFAB}Station Wagons\n\t{FF00EA}Boats\n\t{B8FF02}Unique Vehicles\n\t{C77D87}RC Vehicles\n\t{FFF1AF}Trailers";
	   	ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST," Vehicles: || Scroll Down for more",allvehicles,"Select","Cancel");
		}
        else
        {
        SendClientMessage(playerid,RED,"ERROR: {F3FF02}You already have a car.");
        }
    	}
	if(listitem == 1)
    	{
		new playerstate = GetPlayerState(playerid);
		if(playerstate == PLAYER_STATE_DRIVER) {
		return ModCar(playerid);
		}
		else {
		return SendClientMessage(playerid, COLOR_RED, "ERROR: {FFFFFF}You must be in a {F81414}car {FFFFFF}being the driver.");
		}
        }
	if(listitem == 2)
    	{
    	ShowPlayerDialog(playerid, DMAREAS, DIALOG_STYLE_LIST, "Death Match Areas:", "{6EF83C}Battlefield\n{F81414}Area69\n{00C0FF}Minigun\n{FFAF00}War\n{F3FF02}Flame\n{F300FF}War 2\n{FFFFFF}Sniper\n{00FFEE}CopsNRobbers\n{FBDF89}Minigun2", "Join", "Cancel");
		}
	if(listitem == 3)
    	{
    	if(DMZone[playerid] == 1) return ShowPlayerDialog(playerid,TELEWARN,DIALOG_STYLE_MSGBOX,"Error:","Teleporting Error!\n\n- {F3FF02}Sorry, But you can't Teleport to another area while in a Dm Zone","OK","Leave Dm");
    	ShowPlayerDialog(playerid, CARMENU+1, DIALOG_STYLE_LIST, "Teleports", "FreeWay\nSclub\nSan Fierro\nStuntRun 1\nStuntRun 2\nStunt Run 3\nLvj1\nLvj3\nLvj\nSfj1\nPipe2\nAbdon AirPort\nAndromada\nShamel\nHigh Jump\nBeach Jump\nPier Jump\nOmg\nQuarry\nRmc\nPlaja\nLoop\nLoop2\nLoop3\nLoop4\nParty\nLos Santos Airport\nskate\nlsbeach\nDesert Stunt\nlva\nKarting\npship\nLV\nshitlake\nSky Jump\nCar Sumo\nTrampoline\nWater Jump\nNrg\nCool2\nWang\nAtlantis\nDj\nSfs\nLoop5\nArch\nNrg2", "Go", "Cancel");
		}
	if(listitem == 4)
    	{
        	SendClientMessage(playerid, COLOR_TELEPORT, "*** About server: /help /rules /teles /teles2 /Admins /Cmds ***");
        	SendClientMessage(playerid, COLOR_YELLOW, "Dm: {F3FF02}/Minigun //War //War2 /Parkour /sniper /area69 /Flame /CNR /bf /WAR /DM");
        	SendClientMessage(playerid, PINK, "Fun: {F81414}/cj1 /bmx [1-3] /sj /ij /lsj1 /lvj1 /lvj3 /lvj /sfj1 /pipe2 /aa /andromada /shamel /hj /bj /O.o //nrg[2-3] //freeway /xj");
        	SendClientMessage(playerid, GREEN, "Crazys: {B700FF}/pj /omg /mc /rmc /dam /teepee /bowl /atlantis /quarry /ls /lsa /skate /lsbeach /vw /cool /cool2 /loop [2-6] //Karting /dj /jump /jump2");
        	SendClientMessage(playerid, COLOR_YELLOW, "Fun: {A90202}/lva /pyr /monster /loco /stuntrun[2-3] /lv /shitlake /cs /cs2 /tr /wj /police /docks /predator /dive /dive2", SpeedBoostMultiplier[playerid]);
            SendClientMessage(playerid, PINK, "Fun's And Tune: {3FCD02}/pipe /dj /sfs /spray /bomb /bikes /dilli /pk1 /pk2 /pk3 /sfa /ship /studio /tflv /tfls /tfsf /ee /jetmax /bmx2 /bmx3 /planes");
            SendClientMessage(playerid, COLOR_TELEPORT, "Fun And Tune: {A3E4FF}/arch /ds /loop /sfp /aqua /monster /xXx /burger /derby2 /sf /lc /dildo /stadium /bulletshop /md /sclub /dclub /whetstone /dt");
            SendClientMessage(playerid, 0xFFFFFFAA, "Stunts: {C9FFAB}/Drift /Drift2 /Drift3 /Drift4 /Drift5 /Drag /Drag2 /Drag3 /Races /pipe /pipe3 /wang /plaja /WR /KJ");
            SendClientMessage(playerid, AFK, "Vehicles: {C3C3C3}/CARS /LTC /LCAR /CAR [Name] /infurnus /nrg /trucks /Vehicles");
            SendClientMessage(playerid, COLOR_TELEPORT,"Tuned Cars: {FBDF89}/LTC /LTC2 /LTC3 /LTC4 /LTC5 /LTC6 /LTC7 /LTC8 /LTC9 /LTC10 /LTC11 /LTC12 /LTC13 /Tuning");
		}
	if(listitem == 5)
    	{
    	SendClientMessage(playerid, BLUE,"_______________________Races_______________________");
		SendClientMessage(playerid, WHITE,"{F81414}* To Start Race Type {FFFFFF}/Start [racename]");
		SendClientMessage(playerid, WHITE,"{F81414}* To Leave Race Type {FFFFFF}/ExitRace");
    	SendClientMessage(playerid, GREEN,"* Eazy Races: {FFAF00}BMX , Drag , Pipe2 , LongRace , Wr , Dj , Ls , AA , BeachRace");
    	SendClientMessage(playerid, YELLOW,"* Normal Races: {FFAF00}FagRace , Karting , LVAirRace , LVARACE , NRG , SuperRace , Huntley");
    	SendClientMessage(playerid, RED,"{F81414}* Hard Races: {FFAF00}Speeder , Drift");
    	SendClientMessage(playerid, ORANGE,"{FFAF00}* For Example: {FFFFFF}/Start Drift");
    	SendClientMessage(playerid, BLUE,"_______________________Races_______________________");
        }
	if(listitem == 6)
    	{
    	SendClientMessage(playerid, ORANGE,"{FFAF00}* Live FM! , Usa FM , Egypt Fm , Tunisia Fm, Pakistan Fm, Balkan Fm , type : {FFFFFF}/Radio");
        }
	if(listitem == 7)
    	{
		ShowPlayerDialog(playerid,NEWS,DIALOG_STYLE_MSGBOX,"{6EF83C}NEW UPDATES:","\n{00C0FF}Weapon drop\n/StuntRun [2-3] Map by Sam_hero\n{6EF83C}/Afk - Afk system\n{FFA1A1}/wshop - Weapon shop list\n{FFFFFF}/DM - Added more deathmatch areas\n{00FFEE}- News will be updated by Editing / Adding any update in the server.","DONE","DONE");
        }
	if(listitem == 8)
    	{
        ShowPlayerDialog(playerid,RULES,DIALOG_STYLE_MSGBOX,"{6EF83C}xXx Stunt Paradise Awesome {FBDF89}v5.3 {F81414}Rules","{FFA1A1}Don't using all the kinds of mods!\n{FFA1A1}Don't Car Jacking!\n{FFA1A1}Don't ask to be admin in server!\n{FFA1A1}Don't Swear or insult any player especially the girls because they dont have powers to protect themselves!\n{FFA1A1}Respect other players and admins!\n{F3FF02}Everybody breaking this rules will got Kicked/Banned from the server!","Agree","Kick me!");
		}
        }
        }
    if(dialogid == RULES) // Dialog ID
    {
        if(response) return SendClientMessage(playerid, COLOR_GREEN, "You Have Accepted the Rules."); // Accepted rules
        else
        GameTextForPlayer(playerid, "~W~You Are ~R~Kicked ~W~From The Server for ~R~Declined rules",99999,5);
       	SendClientMessage(playerid, WHITE,"___________________________________");
       	SendClientMessage(playerid, WHITE," ");
       	SendClientMessage(playerid, RED,"You are Kicked from the server. har-har");
       	SendClientMessage(playerid, RED,"Kick Info: Auto Kick.");
       	SendClientMessage(playerid, RED,"Reason: Declined rules server.");
       	SendClientMessage(playerid, RED,"Note: Please read the rules when you come again.");
       	SendClientMessage(playerid, WHITE," ");
       	SendClientMessage(playerid, WHITE,"___________________________________");
        Kick( playerid );
    }
    if(dialogid == TELEWARN) // Dialog ID
    {
        if(response) return SendClientMessage(playerid, RED, "* Server: {B8FF02}Menu Closed"); //
        else
        ResetPlayerWeapons(playerid);
        SetPlayerHealth(playerid,100);
        SetPlayerArmour(playerid,0);
        SetPlayerInterior(playerid, 0);
		SpawnPlayer(playerid);
		SendClientMessage(playerid, GREEN, "[Death-Match]{B8FF02} You have Successfully Death-Match Leaving !");
    }
    if(dialogid == PmMessage)
    {
        if(!response) return 0;
        new message [128];
        new clickedplayer[MAX_PLAYER_NAME];
        new playername[MAX_PLAYER_NAME];
        GetPlayerName(ClickedPlayerID[playerid], clickedplayer, sizeof(clickedplayer));
        GetPlayerName(playerid, playername, sizeof(playername));
        format(message, sizeof(message), "<<MSG>> To %s(%d): %s", clickedplayer, ClickedPlayerID, inputtext);
        SendClientMessage(playerid, 0xFFFF00AA, message);
        format(message, sizeof(message), "<<MSG>> From %s(%d): %s", playername, playerid, inputtext);
        SendClientMessage(ClickedPlayerID[playerid], PM_INCOMING_COLOR, message);
        return 1;
    }
	GetPlayerPos(playerid, X,Y,Z);
	GetPlayerFacingAngle(playerid,Angle);
	if(dialogid == COPSNROBBERS) //
	{
	if(response)
    {
	if(listitem == 0)
    	{
    	if(DMZone[playerid] == 1) return ShowPlayerDialog(playerid,TELEWARN,DIALOG_STYLE_MSGBOX,"Error:","Teleporting Error!\n\n- {F3FF02}Sorry, But you can't Teleport to another area while in a Dm Zone","OK","Leave Dm");
		SetPlayerHealth(playerid,20);
        ResetPlayerWeapons(playerid);
        GivePlayerWeapon(playerid,25,5000000);
        GivePlayerWeapon(playerid,30,5000000);
        GivePlayerWeapon(playerid,24,5000000);
        SetPlayerSkin(playerid, 285);
        SetPlayerColor(playerid, YELLOW);
        GetPlayerName(playerid, pName, sizeof(pName));
    	format(string, sizeof(string), "{FFFFFF}[Cops&Robbers] {F81414}%s {FFFFFF}has joined the Cops Team for join type {C77D87}/CNR", pName, playerid);
    	SendClientMessageToAll(YELLOW, string);
    	SendClientMessage(playerid, RED,"* Server: {FFFFFF}For leave dm type {F3FF02}/LeaveDm");
        SetPlayerPos(playerid,-2178.14, -263.84, 36.51);
        DMZone[playerid] = 1;
    	}
	if(listitem == 1)
    	{
    	if(DMZone[playerid] == 1) return ShowPlayerDialog(playerid,TELEWARN,DIALOG_STYLE_MSGBOX,"Error:","Teleporting Error!\n\n- {F3FF02}Sorry, But you can't Teleport to another area while in a Dm Zone","OK","Leave Dm");
 		SetPlayerHealth(playerid,20);
        ResetPlayerWeapons(playerid);
        GivePlayerWeapon(playerid,4,5000000);
        GivePlayerWeapon(playerid,30,5000000);
        GivePlayerWeapon(playerid,34,5000000);
        GivePlayerWeapon(playerid,27,5000000);
        SetPlayerSkin(playerid, 73);
        SetPlayerColor(playerid, GREEN);
        GetPlayerName(playerid, pName, sizeof(pName));
    	format(string, sizeof(string), "{FFFFFF}[Cops&Robbers] {F81414}%s {FFFFFF}has joined Robber Team for join type {C77D87}/CNR", pName, playerid);
    	SendClientMessageToAll(GREEN, string);
    	SendClientMessage(playerid, RED,"* Server: {FFFFFF}For leave dm type {F3FF02}/LeaveDm");
        SetPlayerPos(playerid, -2142.16, -131.50, 36.51);
        DMZone[playerid] = 1;
        }
        }
        }
	if(dialogid == DMAREAS) //
	{
	if(response)
    {
	if(listitem == 0) //
    	{
        if(DMZone[playerid] == 1) return ShowPlayerDialog(playerid,TELEWARN,DIALOG_STYLE_MSGBOX,"Error:","Teleporting Error!\n\n- {F3FF02}Sorry, But you can't Teleport to another area while in a Dm Zone","OK","Leave Dm");
        new rand = random(sizeof(RandomPlayerSpawns));
        MapLoading(playerid);
        SetPlayerArmour(playerid,50);
    	SetPlayerHealth(playerid,100);
        DMZone[playerid] = 1;
        GetPlayerName(playerid, pName, sizeof(pName));
        format(string, sizeof(string), "[DM] {F81414}%s {FFFFFF}has joined DeathMatch Mode {C77D87}[ /BF ] ", pName, playerid);
        SendClientMessageToAll(COLOR_TELEPORT, string);
    	SendClientMessage(playerid, RED,"* Server: {FFFFFF}For leave dm type {F3FF02}/LeaveDm");
        SetPlayerFacingAngle(playerid,176.60);
    	SetPlayerPos(playerid, RandomPlayerSpawnsbf[rand][0], RandomPlayerSpawnsbf[rand][1], RandomPlayerSpawnsbf[rand][2]);
        ResetPlayerWeapons(playerid);
    	GivePlayerWeapon(playerid,36,5000000);
        GivePlayerWeapon(playerid,39,5000000);
        GivePlayerWeapon(playerid,28,5000000);
        GivePlayerWeapon(playerid,30,5000000);
        }
	if(listitem == 1)
    	{
    	if(DMZone[playerid] == 1) return ShowPlayerDialog(playerid,TELEWARN,DIALOG_STYLE_MSGBOX,"Error:","Teleporting Error!\n\n- {F3FF02}Sorry, But you can't Teleport to another area while in a Dm Zone","OK","Leave Dm");
       	new rand = random(sizeof(RandomPlayerSpawns));
        SetPlayerHealth(playerid,100);
        GetPlayerName(playerid, pName, sizeof(pName));
    	format(string, sizeof(string), "[DM] {F81414}%s {FFFFFF}has joined DeathMatch Mode {C77D87}[ /AREA69 ] ", pName, playerid);
    	SendClientMessageToAll(COLOR_TELEPORT, string);
    	SendClientMessage(playerid, RED,"* Server: {FFFFFF}For leave dm type {F3FF02}/LeaveDm");
        DMZone[playerid] = 1;
  		SetPlayerInterior(playerid, 0);
		SetPlayerPos(playerid, RandomPlayerSpawnsarea69[rand][0], RandomPlayerSpawnsarea69[rand][1], RandomPlayerSpawnsarea69[rand][2]);
        ResetPlayerWeapons(playerid);
      	GivePlayerWeapon(playerid, 24, 500000);
	    GivePlayerWeapon(playerid, 32, 500000);
        GivePlayerWeapon(playerid, 28, 500000);
        GivePlayerWeapon(playerid, 27, 500000);
        GivePlayerWeapon(playerid, 34, 500000);
        }
	if(listitem == 2)
    	{
    	if(DMZone[playerid] == 1) return ShowPlayerDialog(playerid,TELEWARN,DIALOG_STYLE_MSGBOX,"Error:","Teleporting Error!\n\n- {F3FF02}Sorry, But you can't Teleport to another area while in a Dm Zone","OK","Leave Dm");
        SetPlayerHealth(playerid,100);
        GetPlayerName(playerid, pName, sizeof(pName));
    	format(string, sizeof(string), "[DM] {F81414}%s {FFFFFF}has joined DeathMatch Mode {C77D87}[ /MINIGUN ] ", pName, playerid);
    	SendClientMessageToAll(COLOR_TELEPORT, string);
        DMZone[playerid] = 1;
       	new rand = random(sizeof(RandomPlayerSpawns));
		SetPlayerPos(playerid, RandomPlayerSpawnsMinigun[rand][0], RandomPlayerSpawnsMinigun[rand][1], RandomPlayerSpawnsMinigun[rand][2]);
  		SetPlayerInterior(playerid, 0);
    	SendClientMessage(playerid, RED,"* Server: {FFFFFF}For leave dm type {F3FF02}/LeaveDm");
        ResetPlayerWeapons(playerid);
   		GivePlayerWeapon(playerid, 38, 100000);
        }
	if(listitem == 3)
    	{
        if(DMZone[playerid] == 1) return ShowPlayerDialog(playerid,TELEWARN,DIALOG_STYLE_MSGBOX,"Error:","Teleporting Error!\n\n- {F3FF02}Sorry, But you can't Teleport to another area while in a Dm Zone","OK","Leave Dm");
        new rand = random(sizeof(RandomPlayerSpawns));
        MapLoading(playerid);
        SetPlayerArmour(playerid,50);
    	SetPlayerHealth(playerid,100);
        DMZone[playerid] = 1;
        GetPlayerName(playerid, pName, sizeof(pName));
        format(string, sizeof(string), "[DM] {F81414}%s {FFFFFF}has joined DeathMatch Mode {C77D87}[ /WAR ] ", pName, playerid);
        SendClientMessageToAll(COLOR_TELEPORT, string);
    	SendClientMessage(playerid, RED,"* Server: {FFFFFF}For leave dm type {F3FF02}/LeaveDm");
        SetPlayerFacingAngle(playerid,176.60);
		SetPlayerPos(playerid, RandomPlayerSpawnsWar[rand][0], RandomPlayerSpawnsWar[rand][1], RandomPlayerSpawnsWar[rand][2]);
        ResetPlayerWeapons(playerid);
		GivePlayerWeapon(playerid, 31, 800000);
       	GivePlayerWeapon(playerid, 25, 800000);
       	GivePlayerWeapon(playerid, 23, 800000);
       	GivePlayerWeapon(playerid, 34, 800000);
       	GivePlayerWeapon(playerid, 16, 1);
        }
	if(listitem == 4)
    	{
        if(DMZone[playerid] == 1) return ShowPlayerDialog(playerid,TELEWARN,DIALOG_STYLE_MSGBOX,"Error:","Teleporting Error!\n\n- {F3FF02}Sorry, But you can't Teleport to another area while in a Dm Zone","OK","Leave Dm");
        new rand = random(sizeof(RandomPlayerSpawns));
    	SetPlayerHealth(playerid,100);
        ResetPlayerWeapons(playerid);
        GivePlayerWeapon(playerid,37,9999999);
        GetPlayerName(playerid, pName, sizeof(pName));
        format(string, sizeof(string), "[DM] {F81414}%s {FFFFFF}has joined DeathMatch Mode {C77D87}[ /FLAME ] ", pName, playerid);
        SendClientMessageToAll(COLOR_TELEPORT, string);
    	SendClientMessage(playerid, RED,"* Server: {FFFFFF}For leave dm type {F3FF02}/LeaveDm");
     	SetPlayerPos(playerid, RandomPlayerSpawnsFlame[rand][0], RandomPlayerSpawnsFlame[rand][1], RandomPlayerSpawnsFlame[rand][2]);
        DMZone[playerid] = 1;
        }
	if(listitem == 5)
    	{
    	if(DMZone[playerid] == 1) return ShowPlayerDialog(playerid,TELEWARN,DIALOG_STYLE_MSGBOX,"Error:","Teleporting Error!\n\n- {F3FF02}Sorry, But you can't Teleport to another area while in a Dm Zone","OK","Leave Dm");
        SetPlayerHealth(playerid,100);
        GetPlayerName(playerid, pName, sizeof(pName));
    	format(string, sizeof(string), "[DM] {F81414}%s {FFFFFF}has joined DeathMatch {C77D87}[ //WAR2 ] ", pName, playerid);
    	SendClientMessageToAll(COLOR_TELEPORT, string);
    	SendClientMessage(playerid, RED,"* Server: For leave dm type /LeaveDm");
        DMZone[playerid] = 1;
       	new rand = random(sizeof(RandomPlayerSpawns));
		SetPlayerPos(playerid, RandomPlayerSpawnsCtd[rand][0], RandomPlayerSpawnsCtd[rand][1], RandomPlayerSpawnsCtd[rand][2]);
  		SetPlayerInterior(playerid, 5);
        ResetPlayerWeapons(playerid);
   		GivePlayerWeapon(playerid, 16, 10);
   		GivePlayerWeapon(playerid, 31, 1000);
   		GivePlayerWeapon(playerid, 32, 1000);
		}
	if(listitem == 6)
    	{
    	if(DMZone[playerid] == 1) return ShowPlayerDialog(playerid,TELEWARN,DIALOG_STYLE_MSGBOX,"Error:","Teleporting Error!\n\n- {F3FF02}Sorry, But you can't Teleport to another area while in a Dm Zone","OK","Leave Dm");
        SetPlayerHealth(playerid,159);
        GetPlayerName(playerid, pName, sizeof(pName));
    	format(string, sizeof(string), "[DM] {F81414}%s {FFFFFF}has joined DeathMatch Mode {C77D87}[ /SNIPER ] ", pName, playerid);
    	SendClientMessageToAll(COLOR_TELEPORT, string);
    	SendClientMessage(playerid, RED,"* Server: {FFFFFF}For leave dm type {F3FF02}/LeaveDm");
        DMZone[playerid] = 1;
       	new rand = random(sizeof(RandomPlayerSpawns));
		SetPlayerPos(playerid, RandomPlayerSpawnsSniper[rand][0], RandomPlayerSpawnsSniper[rand][1], RandomPlayerSpawnsSniper[rand][2]);
  		SetPlayerInterior(playerid, 0);
   		GivePlayerWeapon(playerid, 34, 1000);
		}
	if(listitem == 7)
    	{
    	ShowPlayerDialog(playerid, COPSNROBBERS, DIALOG_STYLE_LIST, "Choose a team:", "{F3FF02}Cop Team - You should kill Robber Team, Desert Eagle-Ak47-ShotGun\n{6EF83C}Robber Team - You should kill Cop Team, Combat-ShotGun-Ak47-Sniper", "Join", "Cancel");
        }
	if(listitem == 8)
    	{
        if(DMZone[playerid] == 1) return ShowPlayerDialog(playerid,TELEWARN,DIALOG_STYLE_MSGBOX,"Error:","Teleporting Error!\n\n- {F3FF02}Sorry, But you can't Teleport to another area while in a Dm Zone","OK","Leave Dm");
        MapLoading(playerid);
        new rand = random(sizeof(RandomPlayerSpawns));
    	SetPlayerHealth(playerid,100);
        ResetPlayerWeapons(playerid);
   		GivePlayerWeapon(playerid, 38, 100000);
        GetPlayerName(playerid, pName, sizeof(pName));
        format(string, sizeof(string), "[DM] {F81414}%s {FFFFFF}has joined DeathMatch Mode {C77D87}[ /MINIGUN2 ] ", pName, playerid);
        SendClientMessageToAll(COLOR_TELEPORT, string);
    	SendClientMessage(playerid, RED,"* Server: {FFFFFF}For leave dm type {F3FF02}/LeaveDm");
     	SetPlayerPos(playerid, RandomPlayerSpawnsMinigun2[rand][0], RandomPlayerSpawnsMinigun2[rand][1], RandomPlayerSpawnsMinigun2[rand][2]);
        DMZone[playerid] = 1;
        }
        }
        }
	if(dialogid == CARMENU+1) // tele
	{
	if(response)
    {
	if(listitem == 0) //
    	{
        SetPlayerPos(playerid,-2847.38, 2200.65, 801.50 );
        SetPlayerFacingAngle(playerid, 145.0000);
        SetPlayerInterior(playerid, 0);
    	}
	if(listitem == 1) //
    	{
     	SetPlayerInterior(playerid, 2);
     	SetPlayerPos(playerid, 1204.809936,-11.586799,1000.921875);
        }
	if(listitem == 2) //  
     	{
    	if(GetPlayerState(playerid) == 2)
    	{
    	SetVehiclePos(GetPlayerVehicleID(playerid), -2632.2312,1381.6071,7.1703);
    	SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
     	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
    	}
        else
        {
    	SetPlayerPos(playerid, -2632.2312,1381.6071,7.1703);
     	}
    	SetPlayerInterior(playerid, 0);
    	}
    if(listitem == 3) //
    	{
             new sfacar;
	         sfacar = GetPlayerVehicleID(playerid);
           	 if(!GetPlayerVehicleSeat(playerid)) SetVehiclePos(sfacar,2864.1921,38.0054,19.2875);
        	 else SetPlayerPos(playerid,2864.1921,38.0054,19.2875);
        	 SetCameraBehindPlayer(playerid);
        }
	if(listitem == 4) //
    	{
             new sfacar;
	         sfacar = GetPlayerVehicleID(playerid);
           	 if(!GetPlayerVehicleSeat(playerid)) SetVehiclePos(sfacar,-844.7406,-2847.8743,59.3695);
        	 else SetPlayerPos(playerid,-844.7406,-2847.8743,59.3695);
        	 ResetPlayerWeapons(playerid);
        	 SetCameraBehindPlayer(playerid);
        }
	if(listitem == 5) // FCR-900
    	{
             new sfacar;
	         sfacar = GetPlayerVehicleID(playerid);
           	 if(!GetPlayerVehicleSeat(playerid)) SetVehiclePos(sfacar,-1268.1791,-2639.0376,7.1686);
        	 else SetPlayerPos(playerid,-1268.1791,-2639.0376,7.1686);
        	 SetCameraBehindPlayer(playerid);
    	}

	if(listitem == 6) // FCR-900
    	{
   		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid),1545.891968, 2414.349121, 480.258240);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid,1545.891968, 2414.349121, 480.258240);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 7) // FCR-900
		{
  		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid), -1336.475220, 2438.851807, 664.158752);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid, -1336.475220, 2438.851807, 664.158752);
   		}
       	SetPlayerInterior(playerid, 0);
        }
	if(listitem == 8) // FCR-900
		{
    	if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid),2093.783203, 825.678467, 295.681458);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid,2093.783203, 825.678467, 295.681458);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 9) // FCR-900
		{
  		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid), -2955.545166, -899.788818, 376.184082);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid, -2955.545166, -899.788818, 376.184082);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 10) // FCR-900
		{
  		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid), 2890.6560,-2023.6359,5.1680);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid, 2890.6560,-2023.6359,5.1680);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 11) // FCR-900
		{
  		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid),384.7456,2539.0366,16.9104 );
        	SetVehicleZAngle(GetPlayerVehicleID(playerid),  266.558685);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid, 397.6663,2460.0630,16.5000);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 12) // FCR-900
		{
        SetPlayerHealth(playerid,190);
  		SetPlayerInterior(playerid, 9);
   		SetPlayerPos(playerid, 315.9222, 973.6248, 1961.5189);
    	GivePlayerWeapon(playerid, 46, 0);
		}
	if(listitem == 13) // FCR-900
			{
  		SetPlayerInterior(playerid, 1);
   		SetPlayerPos(playerid, 1.8688, 34.3709, 1199.5937);
		}
	if(listitem == 14) // FCR-900
		{
  		SetPlayerInterior(playerid, 0);
  		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid), 1116.8577,2494.9219,432.4359 );
        	SetVehicleZAngle(GetPlayerVehicleID(playerid),0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid, 1116.8577,2494.9219,432.4359);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 15) // FCR-900
	    {
  		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid), 832.2406,-2822.9058,355.3528 );
        	SetVehicleZAngle(GetPlayerVehicleID(playerid),0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid,  832.2406,-2822.9058,355.3528);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 16) // FCR-900
		{
  		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid), 367.5171, -1123.3107, 283.4947);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid),0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid,367.5171, -1123.3107, 283.4947);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 17) // FCR-900
		{
		SetPlayerHealth(playerid,100);
   		SetPlayerPos(playerid, -1753.6965,884.9934,295.8750);
	    ResetPlayerWeapons(playerid);
	   	GivePlayerWeapon(playerid, 46, 10);
		}
	if(listitem == 18) // FCR-900
		{
  		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid), 816.3667,856.1069,12.7891);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid),0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid, 816.3667,856.1069,12.7891);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 19) // FCR-900
		{
  		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid), -2303.1746,-1664.8824,483.6466);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid),0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid, -2303.1746,-1664.8824,483.6466);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 20) // FCR-900
		{
   		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid),586.7327,-1878.7018,4.1501);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid, 586.7327,-1878.7018,4.1501);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 21) // FCR-900
		{
  		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid),-606.29, 412.42, 1980.55);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid,-606.29, 412.42, 1980.55);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 22) // FCR-900
		{
   		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid),145.20, 3205.38, 326.50);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid,145.20, 3205.38, 326.50);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 23) // FCR-900
		{
   		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid), -920.84, 410.10, 318.42 );
        	SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid,-920.84, 410.10, 318.42);
        }
		}
	if(listitem == 24) // FCR-900
		{
    	if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid),2194.58, 1142.86, 1186.43);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid, 2194.58, 1142.86, 1186.43);
   		}
       	SetPlayerInterior(playerid, 0);
	    }
	if(listitem == 25) // FCR-900
		{
    	if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid),223.47, -1862.33, 3.00);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid, 223.47, -1862.33, 3.00);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 26) // FCR-900
		{
  		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid), 1431.29, -2497.52, 13.21);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid),273.62);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid,1874.42, -2467.42, 13.55);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 27) // FCR-900
		{
  		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid), 1904.6875,-1361.4738,13.5182);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid),0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid,  1904.6875,-1361.4738,13.5182);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 28) // FCR-900
		{
  		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid),246.1977,-1875.6469,3.3176);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid),0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid, 246.1977,-1875.6469,3.3176);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 29) // FCR-900
		{
  		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid),-46.0976,1493.5569,12.2858);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid),0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid,-46.0976,1493.5569,12.2858);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 30) // FCR-900
		{
  		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid),1711.04, 1605.86, 9.58);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid),94.62);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid,   1327.51, 1546.41, 19.87);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 31) // FCR-900
		{
        SetPlayerPos(playerid, -1351.5533,436.4477,30.0859);
        SetPlayerInterior(playerid, 0);
        ResetPlayerWeapons(playerid);
		}
	if(listitem == 32) // FCR-900
		{
  		SetPlayerInterior(playerid, 0);
   		SetPlayerPos(playerid, 2000.2612,1539.5486,13.5859);
		}
	if(listitem == 33) // FCR-900
		{
  		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid),2010.45, 1544.85, 13.04);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid),270.63);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid,2010.45, 1544.85, 13.04);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 34) // FCR-900
		{
	    if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid), -814.5036,-1922.3623,8.3026);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid),0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid, -814.5036,-1922.3623,8.3026);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 35) // FCR-900
		{
  		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid),28.50, 1841.39, 247.12);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid),0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid, 28.50, 1841.39, 247.12);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 36) // FCR-900
		{
  	if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid),2422.9431, -1754.7150, 106.9445);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid),0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid,2422.9431, -1754.7150, 106.9445);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 37) // FCR-900
			{
  		SetPlayerInterior(playerid, 0);
   		SetPlayerPos(playerid, 241.9318, 312.7640, 449.6230);
		}
	if(listitem == 38) // FCR-900
		{
  		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid),2346.4353, 13.0089, 78.0566);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid),0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid,2346.4353, 13.0089, 78.0566);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 39) // FCR-900
		{
        SetPlayerPos(playerid,-2667.2512,1933.9125,217.2739);
        SetPlayerFacingAngle(playerid,249.2069);
        SetPlayerInterior(playerid,0);
  		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid),-2667.2512,1933.9125,217.2739);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid,-2667.2512,1933.9125,217.2739);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 40) // FCR-900
		{
   		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid),-44.69, 1487.21, 17.96);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid,-44.69, 1487.21, 17.96);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 41) // FCR-900
		{
   		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid), -1974.759155, 285.357727, 35.171875);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid,-1974.759155, 285.357727, 35.171875);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 42) // FCR-900
			{
  		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid), -1696.7028,185.9553,-52.0744);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid, -1696.7028,185.9553,-52.0744);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 43) // FCR-900
		{
  		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid),-656.4943,2324.4373,138.4693);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid,-656.4943,2324.4373,138.4693);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 44) // FCR-900
		{
  		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid), -2632.2312,1381.6071,7.1703);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid, -2632.2312,1381.6071,7.1703);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 45) // FCR-900 //LOOP5
		{
    	if(DMZone[playerid] == 1) return ShowPlayerDialog(playerid,TELEWARN,DIALOG_STYLE_MSGBOX,"Error:","Teleporting Error!\n\n- Sorry, But you can't Teleport to another area while in a Dm Zone","OK","Leave Dm");
        new
    	vID;
        MapLoading(playerid);
    	if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
		{
			vID = GetPlayerVehicleID(playerid);
			SetVehiclePos(vID, 3389.1086, 168.4443, 459.1703);
		    SetVehicleZAngle(vID, 261.7199);
		    LinkVehicleToInterior(vID, 0);
		}
		else
		{
			SetPlayerPos(playerid, 3389.1086, 168.4443, 459.1703);
		    SetPlayerFacingAngle(playerid, 261.7199);
		    SetPlayerInterior(playerid, 0);
        }
		}
	if(listitem == 46) // FCR-900
		{
  		SetPlayerInterior(playerid, 0);
   		if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid), -2693.0024,217.5576,4.1797);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid, -2693.0024,217.5576,4.1797);
   		}
       	SetPlayerInterior(playerid, 0);
		}
	if(listitem == 47) // FCR-900
		{
      	if(GetPlayerState(playerid) == 2)
     	{
      		SetVehiclePos(GetPlayerVehicleID(playerid),2468.66, -1417.13, 39.56);
        	SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
         	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
       	}
        else
        {
      		SetPlayerPos(playerid, 2468.66, -1417.13, 39.56);
   		}
       	SetPlayerInterior(playerid, 0);
        }
        }
        }
Reply
#2

Show us your OnPlayerDialogResponse, in order to help you.
Reply
#3

Quote:
Originally Posted by Sandiel
Посмотреть сообщение
Show us your OnPlayerDialogResponse, in order to help you.
I added the codes
Reply
#4

When did your server crash exactly? which dialog was executed?
Reply
#5

Quote:
Originally Posted by Sandiel
Посмотреть сообщение
When did your server crash exactly? which dialog was executed?
I dont know i was off but CrashDetect.so is founded this error , one thing also , in my gm i have 70 Warning is this could cause crashs?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)