Zdravím pořád se mi prohazuje Case 13, prosím pomoc
new Float:AutoSkolaA[13][3] =
{
{1113.3907,1343.6901,10.8203},
{1114.4623,1332.1089,10.8203},
{1112.8884,1323.9696,10.8203},
{1112.2625,1317.7410,10.8203},
{1112.0885,1311.3888,10.8203},
{1112.1859,1305.2930,10.8203},
{1111.9672,1299.8652,10.8203},
{1110.8473,1294.4810,10.8203},
{1122.1075,1287.6447,10.8203},
{1136.6288,1288.1295,10.8203},
{1136.9773,1281.6453,10.8203},
{1132.3728,1274.1873,10.8203},
{1131.8478,1261.4714,10.8203}
};
new Float:PPLM[13][5] =
{
{2021.3346,1398.0378,10.5166},
{2561.2324,1416.5454,10.5111},
{2448.3752,1661.7047,10.5077},
{2455.9663,2020.3932,10.7671},
{2557.4377,2064.2644,10.8017},
{2539.0466,2272.6021,10.5242},
{2498.1086,2398.8047,10.5242},
{1509.2045,2596.5520,10.5251},
{1441.8929,2609.8586,10.4480},
{1240.5669,2599.7480,10.5151},
{1619.0483,2739.6992,10.5246},
{1132.3728,1274.1873,10.8203},
{2216.5481,2781.8328,10.5247}
};
A toto v OnPlayerEnterCheckpoint
if(Hrac[Zamestnani][playerid] == 1)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(Hrac[PPLCP][playerid] >=1)
{
switch(Hrac[PPLCP][playerid])
{
case 1 .. 12:
{
new E = Hrac[PPLCP][playerid];
//----------------------------------------
SetPlayerCheckpoint(playerid,PPLM[E][0],PPLM[E][1],PPLM[E][2], 3.0);
Hrac[PPLCP][playerid] ++;
}
case 13:
{
LevelUp(playerid);
SCM(playerid, BARVA_ZEL, "Dokončil jsi misi, dostaneš výplatu + Zkušenosti.");
GivePlayerMoney(playerid, 8500+Hrac[LevelMoney][playerid]);
Hrac[PPLCP][playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
}
}
}
}
if(IsPlayerInAnyVehicle(playerid))
{
if(Hrac[AutoSkolaAuto][playerid] >=1)
{
switch(Hrac[AutoSkolaAuto][playerid])
{
case 1 .. 12:
{
new B = Hrac[AutoSkolaAuto][playerid];
//----------------------------------------
AutoSkolaAutoZivot(playerid);
SetPlayerCheckpoint(playerid,AutoSkolaA[B][0],AutoSkolaA[B][1],AutoSkolaA[B][2], 3.0);
Hrac[AutoSkolaAuto][playerid] ++;
}
case 13:
{
AutoSkolaAutoZivot(playerid);
DisablePlayerCheckpoint(playerid);
Hrac[Rauto][playerid] = 1;
SetPlayerPos(playerid, 1173.7399,1351.2389,10.9219);
DestroyVehicle(GetPlayerVehicleID(playerid));
SCM(playerid, BARVA_ZLU, "[AUTOŠKOLA] Dostal jsi řidičský průkaz na auto");
}
}
}
}