Guten Tag,
ist es möglich hiermit abzufragen ob das Fahrzeug nicht Modell ID 405 ist?
if(GetVehicleModel(vehicleid) == 405)
Guten Tag,
ist es möglich hiermit abzufragen ob das Fahrzeug nicht Modell ID 405 ist?
if(GetVehicleModel(vehicleid) == 405)
Guten Tag,
ist es möglich hiermit abzufragen ob das Fahrzeug nicht Modell ID 405 ist?
if(GetVehicleModel(vehicleid) == 405)
So Fragst du ab ob das Fahrzeug 405 ist.
Nutze if(!GetVehicle... damit Fragst du ab ob das Fahrzeug NICHT Model 405.
MfG.
Funktioniert nicht, tag mistach.
if(!GetVehicleModel(vehicleid) == 405)return
Verwende statt == einfach !=
if(GetVehicleModel(vehicleid) != 405)
Eine Frage noch am Rande, sobald ich den Checkpoint betrete passiert nichts und er returnt den Befehl die ganze Zeit.
Sprich diesen Checkpoint: FahrschuleCP[playerid] = SetPlayerCheckpoint(playerid,1406.0134,-1649.4535,12.9377,5.0);
else if(TutorialCheckpoints[playerid] == 14)
{
DisablePlayerCheckpoint(playerid);
SpielerInfo[playerid][pFahrpruefung] = 1;
SpamChat(playerid,0);
SendClientMessage(playerid,COLOR_ROT,"SERVER:{FFFFFF} Steige nun in ein Fahrzeug um die Prüfung zu beginnen.");
SendClientMessage(playerid,COLOR_ROT,"SERVER:{FFFFFF} Im Tutorial erhältst du deinen Führerschein vom Staat bezahlt.");
FahrschuleCP[playerid] = SetPlayerCheckpoint(playerid,1406.0134,-1649.4535,12.9377,5.0);
FahrschuleCP[playerid] = 1;
}
http://wiki.sa-mp.com/wiki/SetPlayerCheckpoint
Returns This function doesn't return a specific value.
und wieso passiert es dann, dass es sich die ganze Zeit wiederholt?
else if(TutorialCheckpoints[playerid] == 14)
{
DisablePlayerCheckpoint(playerid);
SpielerInfo[playerid][pFahrpruefung] = 1;
SpamChat(playerid,0);
SendClientMessage(playerid,COLOR_ROT,"SERVER:{FFFFFF} Steige nun in ein Fahrzeug um die Prüfung zu beginnen.");
SendClientMessage(playerid,COLOR_ROT,"SERVER:{FFFFFF} Im Tutorial erhältst du deinen Führerschein vom Staat bezahlt.");
SendClientMessage(playerid,COLOR_ROT,"SERVER:{FFFFFF} Den Motor startest du mit /motor und das Licht schaltest du mit /licht ein.");
FahrschuleCP[playerid] = SetPlayerCheckpoint(playerid,1406.0134,-1649.4535,12.9377,5.0);
FahrschuleCP[playerid] = 1;
}
Brauche echt dringend Hilfe.
//edit: Text
//edit: Text
Weil "TutorialCheckpoints" nirgendswo weiter gezählt wird.
Weil "TutorialCheckpoints" nirgendswo weiter gezählt wird.
Ist ja auch so gewollt, er fängt dann ja an FahrschulCP weiter zu zählen.
else if(TutorialCheckpoints[playerid] == 14)
{
DisablePlayerCheckpoint(playerid);
SpielerInfo[playerid][pFahrpruefung] = 1;
SpamChat(playerid,0);
SendClientMessage(playerid,COLOR_ROT,"SERVER:{FFFFFF} Steige nun in ein Fahrzeug um die Prüfung zu beginnen.");
SendClientMessage(playerid,COLOR_ROT,"SERVER:{FFFFFF} Im Tutorial erhältst du deinen Führerschein vom Staat bezahlt.");
SendClientMessage(playerid,COLOR_ROT,"SERVER:{FFFFFF} Den Motor startest du mit /motor und das Licht schaltest du mit /licht ein.");
FahrschuleCP[playerid] = SetPlayerCheckpoint(playerid,1406.0134,-1649.4535,12.9377,5.0);
FahrschuleCP[playerid] = 1;
}
if(FahrschuleCP[playerid] == 1)
{
if(GetVehicleModel(vehicleid) != 405)return
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1430.9847,-1639.4329,12.9577,5.0);
FahrschuleCP[playerid] = 2;
}
else if(FahrschuleCP[playerid] == 2)
{
if(GetVehicleModel(vehicleid) != 405)return
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1432.5797,-1587.4063,12.9547,5.0);
FahrschuleCP[playerid] = 3;
}
if(GetVehicleModel(vehicleid) != 405)return
falsch
if(GetVehicleModel(vehicleid) != 405)return 1;
richtig
Funktioniert komischerweise trotzdem nicht.
FahrschuleCP[playerid] = SetPlayerCheckpoint(playerid,1406.0134,-1649.4535,12.9377,5.0);
FahrschuleCP[playerid] = 1;
Macht keinen sinn..
Hast du auch 'vehicleid' richtig definiert?
vehicleid = GetPlayerVehicleID(playerid);
- LolRiTTeR
FahrschuleCP[playerid] = SetPlayerCheckpoint(playerid,1406.0134,-1649.4535,12.9377,5.0);
FahrschuleCP[playerid] = 1;
Wieso macht das kein Sinn?
Ja, ist richtig definiert.
Weil du zuerst Fahrschule[playerid] mit dem Checkpoint setzt, danach setzt du die var aber auf 1.
Wenn dann
new FahrschuleCP[MAX_PLAYERS][2];
FahrschuleCP[playerid][0] = ...
FahrschuleCP[playerid][1] = 1;
Mach halt mal nen Debug-Modus.
Hau vor und nach jede Abfrage nen SendClientMessageToAll(); (oder print(); wenn du Zugriff auf die Konsole hast) und guck nach was alles geschrieben wird - Die einzelnen Messages natürlich auch verschieden schreiben
- LolRiTTeR
Der spamt das da rein, dass ist nicht normal.
Log
[expander]
[14:32:49] 1
[14:32:49] 2
[14:32:49] 3
[14:33:02] 1
[14:33:02] 2
[14:33:02] 3
[14:33:02] 4
[14:33:02] 5
[14:33:02] 6
[14:33:04] 1
[14:33:04] 2
[14:33:04] 3
[14:33:04] 4
[14:33:04] 5
[14:33:04] 6
[14:33:05] 1
[14:33:05] 2
[14:33:05] 3
[14:33:05] 4
[14:33:05] 5
[14:33:05] 6
[14:33:05] 1
[14:33:05] 2
[14:33:05] 3
[14:33:05] 4
[14:33:05] 5
[14:33:05] 6
[14:33:05] 1
[14:33:05] 2
[14:33:05] 3
[14:33:05] 4
[14:33:05] 5
[14:33:05] 6
[14:33:05] 1
[14:33:05] 2
[14:33:05] 3
[14:33:05] 4
[14:33:05] 5
[14:33:05] 6
[14:33:05] 1
[14:33:05] 2
[14:33:05] 3
[14:33:05] 4
[14:33:05] 5
[14:33:05] 6
[14:33:05] 1
[14:33:05] 2
[14:33:05] 3
[14:33:05] 4
[14:33:05] 5
[14:33:05] 6
[14:33:05] 1
[14:33:05] 2
[14:33:05] 3
[14:33:05] 4
[14:33:05] 5
[14:33:05] 6
[14:33:05] 1
[14:33:05] 2
[14:33:05] 3
[14:33:05] 4
[14:33:05] 5
[14:33:05] 6
[14:33:05] 1
[14:33:05] 2
[14:33:05] 3
[14:33:05] 4
[14:33:05] 5
[14:33:05] 6
[14:33:05] 1
[14:33:05] 2
[14:33:05] 3
[14:33:05] 4
[14:33:05] 5
[14:33:05] 6
[14:33:05] 1
[14:33:05] 2
[14:33:05] 3
[14:33:05] 4
[14:33:05] 5
[14:33:05] 6
[14:33:05] 1
[14:33:05] 2
[14:33:05] 3
[14:33:05] 4
[14:33:05] 5
[14:33:05] 6
[14:33:05] 1
[14:33:05] 2
[14:33:05] 3
[14:33:05] 4
[14:33:05] 5
[14:33:05] 6
[14:33:05] 1
[14:33:05] 2
[14:33:05] 3
[14:33:05] 4
[14:33:05] 5
[14:33:05] 6
[14:33:05] 1
[14:33:05] 2
[14:33:05] 3
[14:33:05] 4
[14:33:05] 5
[14:33:05] 6
[14:33:05] 1
[14:33:05] 2
[14:33:05] 3
[14:33:05] 4
[14:33:05] 5
[14:33:05] 6
[14:33:05] 1
[14:33:05] 2
[14:33:05] 3
[14:33:05] 4
[14:33:05] 5
[14:33:05] 6
[14:33:05] 1
[14:33:05] 2
[14:33:05] 3
[14:33:05] 4
[14:33:05] 5
[14:33:05] 6
[14:33:05] 1
[14:33:05] 2
[14:33:05] 3
[14:33:05] 4
[14:33:05] 5
[14:33:05] 6
[14:33:05] 1
[14:33:05] 2
[14:33:05] 3
[14:33:05] 4
[14:33:05] 5
[14:33:05] 6
Alles anzeigen
[/expander
else if(TutorialCheckpoints[playerid] == 14)
{
printf("1");
DisablePlayerCheckpoint(playerid);
SpielerInfo[playerid][pFahrpruefung] = 1;
SpamChat(playerid,0);
SendClientMessage(playerid,COLOR_ROT,"SERVER:{FFFFFF} Steige nun in ein Fahrzeug um die Prüfung zu beginnen.");
SendClientMessage(playerid,COLOR_ROT,"SERVER:{FFFFFF} Im Tutorial erhältst du deinen Führerschein vom Staat bezahlt.");
SendClientMessage(playerid,COLOR_ROT,"SERVER:{FFFFFF} Den Motor startest du mit /motor und das Licht schaltest du mit /licht ein.");
printf("2");
FahrschuleCP[playerid] = SetPlayerCheckpoint(playerid,1406.0134,-1649.4535,12.9377,5.0);
FahrschuleCP[playerid] = 1;
printf("3");
}
if(FahrschuleCP[playerid] == 1)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
printf("4");
SetPlayerCheckpoint(playerid,1430.9847,-1639.4329,12.9577,5.0);
printf("5");
FahrschuleCP[playerid] = 2;
printf("6");
}
else if(FahrschuleCP[playerid] == 2)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
printf("7");
SetPlayerCheckpoint(playerid,1432.5797,-1587.4063,12.9547,5.0);
printf("8");
FahrschuleCP[playerid] = 3;
printf("9");
}
Poste mal grade den gesamten Code und erkläre was nicht geht. Ich schau mal drüber
Das Führerschein System und Tutorial System arbeiten zusammen, aber ich verstehe nicht wieso es nicht geht.
public OnPlayerEnterCheckpoint(playerid)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if(TutorialCheckpoints[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1783.7642,-1826.6234,13.2580,5.0);
TutorialCheckpoints[playerid] = 2;
}
else if(TutorialCheckpoints[playerid] == 2)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1707.8109,-1810.3610,13.2380,5.0);
TutorialCheckpoints[playerid] = 3;
}
else if(TutorialCheckpoints[playerid] == 3)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1691.7450,-1763.8716,13.2578,5.0);
TutorialCheckpoints[playerid] = 4;
}
else if(TutorialCheckpoints[playerid] == 4)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1646.7273,-1729.4967,13.2578,5.0);
TutorialCheckpoints[playerid] = 5;
}
else if(TutorialCheckpoints[playerid] == 5)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1557.3698,-1730.3230,13.2578,5.0);
TutorialCheckpoints[playerid] = 6;
}
else if(TutorialCheckpoints[playerid] == 6)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1489.9122,-1742.5625,13.4225,5.0);
TutorialCheckpoints[playerid] = 7;
}
else if(TutorialCheckpoints[playerid] == 7)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1481.1149,-1771.9109,18.7958,5.0);
TutorialCheckpoints[playerid] = 8;
}
else if(TutorialCheckpoints[playerid] == 8)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,361.7251,173.4957,1008.6821,5.0);
TutorialCheckpoints[playerid] = 9;
}
else if(TutorialCheckpoints[playerid] == 9)
{
SpamChat(playerid,0);
SendClientMessage(playerid,COLOR_ROT,"SERVER:{FFFFFF} Nun hol dir deinen Personalausweis ab.");
}
else if(TutorialCheckpoints[playerid] == 10)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1464.2123,-1743.3392,13.5469,5.0);
TutorialCheckpoints[playerid] = 11;
}
else if(TutorialCheckpoints[playerid] == 11)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1438.1028,-1713.0817,13.5469,5.0);
TutorialCheckpoints[playerid] = 12;
}
else if(TutorialCheckpoints[playerid] == 12)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1436.7813,-1658.1958,13.5469,5.0);
TutorialCheckpoints[playerid] = 13;
}
else if(TutorialCheckpoints[playerid] == 13)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1398.5101,-1653.6957,13.5395,5.0);
TutorialCheckpoints[playerid] = 14;
}
else if(TutorialCheckpoints[playerid] == 14)
{
printf("1");
DisablePlayerCheckpoint(playerid);
SpielerInfo[playerid][pFahrpruefung] = 1;
SpamChat(playerid,0);
SendClientMessage(playerid,COLOR_ROT,"SERVER:{FFFFFF} Steige nun in ein Fahrzeug um die Prüfung zu beginnen.");
SendClientMessage(playerid,COLOR_ROT,"SERVER:{FFFFFF} Im Tutorial erhältst du deinen Führerschein vom Staat bezahlt.");
SendClientMessage(playerid,COLOR_ROT,"SERVER:{FFFFFF} Den Motor startest du mit /motor und das Licht schaltest du mit /licht ein.");
printf("2");
FahrschuleCP[playerid] = SetPlayerCheckpoint(playerid,1406.0134,-1649.4535,12.9377,5.0);
FahrschuleCP[playerid] = 1;
printf("3");
}
if(FahrschuleCP[playerid] == 1)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
printf("4");
SetPlayerCheckpoint(playerid,1430.9847,-1639.4329,12.9577,5.0);
printf("5");
FahrschuleCP[playerid] = 2;
printf("6");
}
else if(FahrschuleCP[playerid] == 2)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
printf("7");
SetPlayerCheckpoint(playerid,1432.5797,-1587.4063,12.9547,5.0);
printf("8");
FahrschuleCP[playerid] = 3;
printf("9");
}
else if(FahrschuleCP[playerid] == 3)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1451.4188,-1493.3180,12.9373,5.0);
FahrschuleCP[playerid] = 4;
}
else if(FahrschuleCP[playerid] == 4)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1457.7466,-1359.7689,12.9474,5.0);
FahrschuleCP[playerid] = 5;
}
else if(FahrschuleCP[playerid] == 5)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1457.6345,-1237.5155,12.9469,5.0);
FahrschuleCP[playerid] = 6;
}
else if(FahrschuleCP[playerid] == 6)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1457.5945,-1174.5500,23.2306,5.0);
FahrschuleCP[playerid] = 7;
}
else if(FahrschuleCP[playerid] == 7)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1421.9216,-1155.1943,23.2286,5.0);
FahrschuleCP[playerid] = 8;
}
else if(FahrschuleCP[playerid] == 8)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1375.8177,-1139.0874,23.2207,5.0);
FahrschuleCP[playerid] = 9;
}
else if(FahrschuleCP[playerid] == 9)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1369.1403,-1064.6139,25.9174,5.0);
FahrschuleCP[playerid] = 10;
}
else if(FahrschuleCP[playerid] == 10)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1376.1962,-978.0980,31.5919,5.0);
FahrschuleCP[playerid] = 11;
}
else if(FahrschuleCP[playerid] == 11)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1336.0430,-929.4261,35.3631,5.0);
FahrschuleCP[playerid] = 12;
}
else if(FahrschuleCP[playerid] == 12)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1243.0022,-931.8552,42.0964,5.0);
FahrschuleCP[playerid] = 13;
}
else if(FahrschuleCP[playerid] == 13)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1194.8478,-940.4761,42.3133,5.0);
FahrschuleCP[playerid] = 14;
}
else if(FahrschuleCP[playerid] == 13)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1118.4160,-947.5818,42.2069,5.0);
FahrschuleCP[playerid] = 14;
}
else if(FahrschuleCP[playerid] == 14)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1081.1895,-1021.0340,33.0060,5.0);
FahrschuleCP[playerid] = 15;
}
else if(FahrschuleCP[playerid] == 15)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1079.8970,-1083.1576,26.2259,5.0);
FahrschuleCP[playerid] = 16;
}
else if(FahrschuleCP[playerid] == 16)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1074.5892,-1139.1481,23.2174,5.0);
FahrschuleCP[playerid] = 17;
}
else if(FahrschuleCP[playerid] == 17)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1056.2784,-1164.2538,23.3639,5.0);
FahrschuleCP[playerid] = 18;
}
else if(FahrschuleCP[playerid] == 18)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1056.7262,-1263.6404,13.7937,5.0);
FahrschuleCP[playerid] = 19;
}
else if(FahrschuleCP[playerid] == 19)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1055.7468,-1373.5164,12.9771,5.0);
FahrschuleCP[playerid] = 20;
}
else if(FahrschuleCP[playerid] == 20)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1157.7786,-1403.4602,13.0207,5.0);
FahrschuleCP[playerid] = 21;
}
else if(FahrschuleCP[playerid] == 21)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1243.8427,-1403.6449,12.5639,5.0);
FahrschuleCP[playerid] = 22;
}
else if(FahrschuleCP[playerid] == 22)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1325.7325,-1403.4529,12.9044,5.0);
FahrschuleCP[playerid] = 23;
}
else if(FahrschuleCP[playerid] == 23)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1341.4213,-1448.9951,12.9471,5.0);
FahrschuleCP[playerid] = 24;
}
else if(FahrschuleCP[playerid] == 24)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1299.7664,-1600.4451,12.9471,5.0);
FahrschuleCP[playerid] = 25;
}
else if(FahrschuleCP[playerid] == 25)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1298.8577,-1749.0839,12.9471,5.0);
FahrschuleCP[playerid] = 26;
}
else if(FahrschuleCP[playerid] == 26)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1299.4969,-1839.5210,12.9471,5.0);
FahrschuleCP[playerid] = 27;
}
else if(FahrschuleCP[playerid] == 27)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1354.1946,-1867.2999,12.9471,5.0);
FahrschuleCP[playerid] = 28;
}
else if(FahrschuleCP[playerid] == 28)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1391.9171,-1849.1688,12.9480,5.0);
FahrschuleCP[playerid] = 29;
}
else if(FahrschuleCP[playerid] == 29)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1391.8938,-1748.0760,12.9478,5.0);
FahrschuleCP[playerid] = 30;
}
else if(FahrschuleCP[playerid] == 30)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1404.9725,-1735.2769,12.9527,5.0);
FahrschuleCP[playerid] = 31;
}
else if(FahrschuleCP[playerid] == 31)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1431.4185,-1706.5387,12.9473,5.0);
FahrschuleCP[playerid] = 32;
}
else if(FahrschuleCP[playerid] == 32)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1423.2992,-1652.0764,12.9112,5.0);
FahrschuleCP[playerid] = 33;
}
else if(FahrschuleCP[playerid] == 33)
{
if(GetVehicleModel(vehicleid) != 405)return 1;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1386.3470,-1647.2156,12.9418,5.0);
FahrschuleCP[playerid] = 34;
}
else if(FahrschuleCP[playerid] == 34)
{
SpamChat(playerid,0);
DisablePlayerCheckpoint(playerid);
new vehicle = GetPlayerVehicleID(playerid);
SetVehicleToRespawn(vehicle);
SpielerInfo[playerid][pFahrpruefung] = 0;
SpielerInfo[playerid][pFuehrerschein] = 1;
SpielerInfo[playerid][pTutorial] = 1;
SavePlayer(playerid);
SendClientMessage(playerid,COLOR_ROT,"SERVER:{FFFFFF} Herzlichen Glückwunsch, du hast deinen Führerschein erhalten.");
SendClientMessage(playerid,COLOR_ROT,"SERVER:{FFFFFF} Hiermit ist das Tutorial auch zuende. Tipp: Beantrage ein Bankkonto bei der Bank. (/gps");
}
return 1;
}
Warum machst du denn aufeinmal mit FahrschuleCP[playerid] ..; weiter?
Nimm doch TutorialCheckpoints und arbeite damit weiter, das geht doch auch
Änder das mal ab dem FahrschuleCP ab, und ändere das wieder in TutorialCheckpoints, und die Abfragen danach auch alle ändern.