Pawn Compiler crashes
#1

So every time I try to compile my gamemode the pawn compiler crashes and I seem to have found the code that's causing the crash, but I don't know what I have done wrong maybe someone can help? Thanks

Code:
if(dialogid == DIALOG_TELES2)
	  {
	    if(response)
        {
			switch(listitem)
		    {
				case 0:
				{
					SetPlayerPos(playerid , 1070.51,-328.16,76.47 );
					SetPlayerFacingAngle (playerid , 0.281855);
					SetPlayerInterior(playerid,0);
					GameTextForPlayer(playerid, "~w~Loading...~r~ Disco Road!", 3000, 1);
					TogglePlayerControllable(playerid, false);
	    			SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
					//GameTextForPlayer(playerid, "Loading objects...", 3000, 6);
				}
				else if(IsPlayerInAnyVehicle ( playerid ) )
				{
					SetVehiclePos(GetPlayerVehicleID(playerid) , 1070.51,-328.16,76.47 );
					SetVehicleZAngle (GetPlayerVehicleID(playerid) , 0.281855);
					SetPlayerInterior(playerid,0);
					GameTextForPlayer(playerid, "~w~Loading...~r~ Disco Road!", 3000, 1);
					TogglePlayerControllable(playerid, false);
	    			SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
					//GameTextForPlayer(playerid, "Loading objects...", 3000, 6);
				}
				case 1:
		        {
					if(!IsPlayerInAnyVehicle ( playerid ) )
					{
						SetPlayerPos(playerid , -298.85,1530.51,78.14 );
						SetPlayerFacingAngle (playerid , 0.281855);
						SetPlayerInterior(playerid,0);
						GameTextForPlayer(playerid, "~w~Loading...~r~ Drift Spot 1!", 3000, 1);
						TogglePlayerControllable(playerid, false);
	    				SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
						//GameTextForPlayer(playerid, "Loading objects...", 3000, 6);
					}
					else if(IsPlayerInAnyVehicle ( playerid ) )
					{
						SetVehiclePos(GetPlayerVehicleID(playerid) , -298.85,1530.51,78.14 );
						SetVehicleZAngle (GetPlayerVehicleID(playerid) , 0.281855);
						SetPlayerInterior(playerid,0);
						GameTextForPlayer(playerid, "~w~Loading...~r~ Drift Spot 1!", 3000, 1);
						TogglePlayerControllable(playerid, false);
	   					SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
						//GameTextForPlayer(playerid, "Loading objects...", 3000, 6);
					}
				}
				case 2:
				{
					if(!IsPlayerInAnyVehicle ( playerid ) )
					{
						SetPlayerPos(playerid , 2827.49,1411.28,13.59);
						SetPlayerFacingAngle (playerid , 22.3200);
						SetPlayerInterior(playerid,0);
						GameTextForPlayer(playerid, "~w~Loading...~r~ Drift 2!", 3000, 1);
						TogglePlayerControllable(playerid, false);
	    				SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
						//GameTextForPlayer(playerid, "Loading objects...", 3000, 6);
					}
					else if(IsPlayerInAnyVehicle ( playerid ) )
					{
						SetVehiclePos(GetPlayerVehicleID(playerid) , 2827.49,1411.28,13.59);
						SetVehicleZAngle (GetPlayerVehicleID(playerid) , 22.3200);
						SetPlayerInterior(playerid,0);
						GameTextForPlayer(playerid, "~w~Loading...~r~ Drift 2!", 3000, 1);
						TogglePlayerControllable(playerid, false);
						SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
						//GameTextForPlayer(playerid, "Loading objects...", 3000, 6);
					}
				}
				case 3:
				{
					if(!IsPlayerInAnyVehicle ( playerid ) )
					{
						SetPlayerPos(playerid , -2815.01,1297.74,11.75 );
						SetPlayerFacingAngle (playerid , 0.281855);
						SetPlayerInterior(playerid,0);
						GameTextForPlayer(playerid, "~w~Loading...~r~ Tubes 1!", 3000, 1);
						TogglePlayerControllable(playerid, false);
	    				SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
						//GameTextForPlayer(playerid, "Loading objects...", 3000, 6);
					}
					else if(IsPlayerInAnyVehicle ( playerid ) )
					{
						SetVehiclePos(GetPlayerVehicleID(playerid) , -2815.01,1297.74,11.75 );
						SetVehicleZAngle (GetPlayerVehicleID(playerid) , 0.281855);
						SetPlayerInterior(playerid,0);
						GameTextForPlayer(playerid, "~w~Loading...~r~ Tubes 1!", 3000, 1);
						TogglePlayerControllable(playerid, false);
	    				SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
						//GameTextForPlayer(playerid, "Loading objects...", 3000, 6);
					}
				}
				case 4:
				{
					if(!IsPlayerInAnyVehicle ( playerid ) )
					{
						SetPlayerPos(playerid , -2746.55,566.16,16.56 );
						SetPlayerFacingAngle (playerid , 0.281855);
						SetPlayerInterior(playerid,0);
						GameTextForPlayer(playerid, "~w~Loading...~r~ Tubes 2!", 3000, 1);
						TogglePlayerControllable(playerid, false);
	    				SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
						//GameTextForPlayer(playerid, "Loading objects...", 3000, 6);
					}
					else if(IsPlayerInAnyVehicle ( playerid ) )
					{
						SetVehiclePos(GetPlayerVehicleID(playerid) , -2746.55,566.16,16.56 );
						SetVehicleZAngle (GetPlayerVehicleID(playerid) , 0.281855);
						SetPlayerInterior(playerid,0);
						GameTextForPlayer(playerid, "~w~Loading...~r~ Tubes 2!", 3000, 1);
						TogglePlayerControllable(playerid, false);
	    				SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
						//GameTextForPlayer(playerid, "Loading objects...", 3000, 6);
					}
				}
				case 5:
				{
					if(!IsPlayerInAnyVehicle ( playerid ) )
					{
						SetPlayerPos(playerid, -748.98,253.38,5.95);
						SetPlayerFacingAngle(playerid, 6.0100);
						SetPlayerInterior(playerid, 0);
						GameTextForPlayer(playerid, "~w~Loading... ~r~tubes 3!", 3000, 1);
						TogglePlayerControllable(playerid, false);
						SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
						//GameTextForPlayer(playerid, "Loading objects...", 3000, 6);
					}
					else if(IsPlayerInAnyVehicle ( playerid ) )
					{
						SetVehiclePos(GetPlayerVehicleID(playerid) , -748.98,253.38,5.95);
						SetVehicleZAngle (GetPlayerVehicleID(playerid) , 6.0100);
						SetPlayerInterior(playerid,0);
						GameTextForPlayer(playerid, "~w~Loading... ~r~tubes 3!", 3000, 1);
						TogglePlayerControllable(playerid, false);
						SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
						//GameTextForPlayer(playerid, "Loading objects...", 3000, 6);
					}
				}
				case 6:
				{
					if(!IsPlayerInAnyVehicle ( playerid ) )
					{
						SetPlayerPos(playerid , 2400.08,4170.88,60.84);
						SetPlayerFacingAngle (playerid , 22.3200);
						SetPlayerInterior(playerid,0);
						GameTextForPlayer(playerid, "~w~Loading...~r~ Coaster 1!", 3000, 1);
						TogglePlayerControllable(playerid, false);
	    				SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
						//GameTextForPlayer(playerid, "Loading objects...", 3000, 6);
					}
					else if(IsPlayerInAnyVehicle ( playerid ) )
					{
						SetVehiclePos(GetPlayerVehicleID(playerid) , 2400.08,4170.88,60.84);
						SetVehicleZAngle (GetPlayerVehicleID(playerid) , 22.3200);
						SetPlayerInterior(playerid,0);
						GameTextForPlayer(playerid, "~w~Loading...~r~ Coaster 1!", 3000, 1);
						TogglePlayerControllable(playerid, false);
	    				SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
						//GameTextForPlayer(playerid, "Loading objects...", 3000, 6);
					}
				}
				case 7:
				{
					if(!IsPlayerInAnyVehicle ( playerid ) )
					{
						SetPlayerPos(playerid , -1946.86,-1781.57,837.85 );
						SetPlayerFacingAngle (playerid , 0.281855);
						SetPlayerInterior(playerid,0);
						GameTextForPlayer(playerid, "~w~Loading...~r~ coaster 2!", 3000, 1);
						TogglePlayerControllable(playerid, false);
	    				SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
						//GameTextForPlayer(playerid, "Loading objects...", 3000, 6);
					}
					else if(IsPlayerInAnyVehicle ( playerid ) )
					{
						SetVehiclePos(GetPlayerVehicleID(playerid) , -1946.86,-1781.57,837.85 );
						SetVehicleZAngle (GetPlayerVehicleID(playerid) , 0.281855);
						SetPlayerInterior(playerid,0);
						GameTextForPlayer(playerid, "~w~Loading...~r~ coaster 2!", 3000, 1);
						TogglePlayerControllable(playerid, false);
	    				SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
						//GameTextForPlayer(playerid, "Loading objects...", 3000, 6);
					}
				}
				case 8:
				{
					if(!IsPlayerInAnyVehicle ( playerid ) )
					{
						SetPlayerPos(playerid , 1417.8788,2773.7261,10.8203);
						SetPlayerFacingAngle (playerid , 22.3200);
						SetPlayerInterior(playerid,0);
						GameTextForPlayer(playerid, "~w~Loading...~r~ Country Club!", 3000, 1);
						TogglePlayerControllable(playerid, false);
	    				SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
						//GameTextForPlayer(playerid, "Loading objects...", 3000, 6);
					}
				}
				case 9:
				{
					if(!IsPlayerInAnyVehicle ( playerid ) )
					{
						SetPlayerPos(playerid, -178.50,1883.23,117.53);
						SetPlayerFacingAngle(playerid, 345.4970);
						SetPlayerInterior(playerid, 0);
						GameTextForPlayer(playerid, "~w~Loading... ~r~Lounge!", 3000, 1);
						TogglePlayerControllable(playerid, false);
						SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
						//GameTextForPlayer(playerid, "Loading objects...", 3000, 6);
					}
					else if(IsPlayerInAnyVehicle ( playerid ) )
					{
						SetVehiclePos(GetPlayerVehicleID(playerid) , -178.50,1883.23,117.53);
						SetVehicleZAngle (GetPlayerVehicleID(playerid) , 345.4970);
						SetPlayerInterior(playerid,0);
						GameTextForPlayer(playerid, "~w~Loading... ~r~Lounge!", 3000, 1);
						TogglePlayerControllable(playerid, false);
						SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
						//GameTextForPlayer(playerid, "Loading objects...", 3000, 6);
					}
				}
				case 10:
				{
					if(!IsPlayerInAnyVehicle ( playerid ) )
					{
						SetPlayerPos(playerid, -3829.8647,392.9852,19.9718);
						SetPlayerFacingAngle(playerid, 345.4970);
						SetPlayerInterior(playerid, 0);
						GameTextForPlayer(playerid, "~w~Loading... ~r~VIP HOUSE!", 3000, 1);
						TogglePlayerControllable(playerid, false);
						SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
						//GameTextForPlayer(playerid, "Loading objects...", 3000, 6);
					}
					else if(IsPlayerInAnyVehicle ( playerid ) )
					{
						SetVehiclePos(GetPlayerVehicleID(playerid) , -3829.8647,392.9852,19.9718);
						SetVehicleZAngle (GetPlayerVehicleID(playerid) , 345.4970);
						SetPlayerInterior(playerid,0);
						GameTextForPlayer(playerid, "~w~Loading... ~r~VIP HOUSE!", 3000, 1);
						TogglePlayerControllable(playerid, false);
						SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
						//GameTextForPlayer(playerid, "Loading objects...", 3000, 6);
					}
				}
				case 11:
				{
					if(!IsPlayerInAnyVehicle ( playerid ) )
					{
						SetPlayerPos(playerid, 216.55,-2749.07,8.84);
						SetPlayerFacingAngle(playerid, 345.4970);
						SetPlayerInterior(playerid, 0);
						GameTextForPlayer(playerid, "~w~Loading... ~r~island!", 3000, 1);
						TogglePlayerControllable(playerid, false);
						SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
						//GameTextForPlayer(playerid, "Loading objects...", 3000, 6);
					}
					else if(IsPlayerInAnyVehicle ( playerid ) )
					{
						SetVehiclePos(GetPlayerVehicleID(playerid) , 216.55,-2749.07,8.84);
						SetVehicleZAngle (GetPlayerVehicleID(playerid) , 345.4970);
						SetPlayerInterior(playerid,0);
						GameTextForPlayer(playerid, "~w~Loading... ~r~island!", 3000, 1);
						TogglePlayerControllable(playerid, false);
						SetTimerEx("UnfreezePlayer", 3000, false, "i", playerid);
						//GameTextForPlayer(playerid, "Loading objects...", 3000, 6);
					}
				}
			}
The code is properly indented as well, I just pasted it on here.
Reply
#2

Comment part by part. Start by commenting 90% of your code, 80%, 70%, ...
Reply
#3

Quote:
Originally Posted by Dayrion
View Post
Comment part by part. Start by commenting 90% of your code, 80%, 70%, ...
This is literally the code I found that's crashing it as stated above.
Reply
#4

Quote:
Originally Posted by xXitsgodzillaXx
View Post
This is literally the code I found that's crashing it as stated above.
And what I said is for your code above. If you found it was that code the problem, you can find what part of this code is really the problem.
Reply
#5

Fixed..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)