Habe ich auch schon.
Beiträge von SA:MP-Designs
-
-
Zitat
32 Bit Libraries installiert ?
Das funktioniert wie? - Der Gameserver ist einfach nur bei einem größeren Sponsor gehostet, mehr nicht.
-
Habe Sie doch.
-
Guten Tag,
bis vor kurzem lief das Script noch und jetzt sagt mir die Error Log folgendes
Spoiler anzeigen SA-MP Dedicated Server
----------------------
v0.3z, (C)2005-2014 SA-MP TeamSpoiler anzeigen [13:01:57] gamemode1 = "" (string)
[13:01:57] gamemode2 = "" (string)
[13:01:57] filterscripts = "" (string)
[13:01:57]
[13:01:57] Server Plugins
[13:01:57] --------------
[13:01:57] Loading plugin: mysql.so
[13:01:57] Failed (libmysqlclient_r.so.15: wrong ELF class: ELFCLASS64)
[13:01:57] Loaded 0 plugins.Spoiler anzeigen [13:01:57]
[13:01:57] Filterscripts
[13:01:57] ---------------
[13:01:57] Loaded 0 filterscripts.Spoiler anzeigen [13:01:57] Script[gamemodes/GTARP.amx]: Run time error 19: "File or function is not found"
[13:01:57] Number of vehicle models: 0
Habe das Problem schon in Google durchforstet, kam aber zu keiner funktionierenden Lösung. Arbeite mit MySQL R5.
-
Könnte ich die 4 Signatur mit meinen Namen "Dean" einmal mit "Alvaro_Pacino und einmal mit "Ryan_Pacino" haben?
-
Nein, nur ich werde sofort gespawnt sobald ich Shift drücke.
-
Ja funktioniert aber trotzdem nicht
-
Der Spieler wird trotzdem gespawnt oO
-
Ja ist es.
-
Guten Tag,
mein Skin System funktioniert nicht ganz, wenn ich dann Shift drücke werde ich gespawnt.
Hier mal Code:
if(dialogid == DIALOG_GESCHLECHT)
{
if(response == 1) //Männlich
{
SendClientMessage(playerid,COLOR_ROT,"In Ordnung, du bist also Männlich.");
SavePlayer(playerid);
SpielerInfo[playerid][pGeschlecht] = 1;
SendClientMessage(playerid, COLOR_WHITE, "Du kannst den Skin mit der {FF0000}Shift{FFFFFF} Taste wechseln.");
SendClientMessage(playerid, COLOR_WHITE, "Mit der {FF0000}Enter{FFFFFF} Taste wählst du den Skin aus.");
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
SetPlayerPos(playerid, 437.3533,-1748.4609,9.1031);
SetPlayerCameraPos(playerid, 438.6240,-1752.1791,8.8109);
SetPlayerCameraLookAt(playerid, 437.3533,-1748.4609,9.1031);
SetPlayerFacingAngle(playerid, 228.3101);
TogglePlayerControllable(playerid,0);
pPlayerRegisterChooseSkinMale[playerid] = 1;
SetPlayerSkin(playerid, 2); // Mann Skin
ShowPlayerDialog(playerid,DIALOG_ALTER,DIALOG_STYLE_INPUT,"{00AFFF}"#SERVERNAME" {FFFFFF}- Information","Wir brauchen nun noch eine letzte persönliche Information von dir.\nWir möchten gerne wissen wie alt du bist, Angaben in TT.MM.JJJJ.","Weiter","Abbrechen");
}
if(response == 0) //Weiblich
{
SendClientMessage(playerid,COLOR_ROT,"In Ordnung, du bist also Weiblich.");
SavePlayer(playerid);
SpielerInfo[playerid][pGeschlecht] = 2;
SendClientMessage(playerid, COLOR_WHITE, "Du kannst den Skin mit der {FF0000}Shift{FFFFFF} Taste wechseln.");
SendClientMessage(playerid, COLOR_WHITE, "Mit der {FF0000}Enter{FFFFFF} Taste wählst du den Skin aus.");
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
SetPlayerPos(playerid, 437.3533,-1748.4609,9.1031);
SetPlayerCameraPos(playerid, 438.6240,-1752.1791,8.8109);
SetPlayerCameraLookAt(playerid, 437.3533,-1748.4609,9.1031);
SetPlayerFacingAngle(playerid, 228.3101);
TogglePlayerControllable(playerid,0);pPlayerRegisterChooseSkinFemale[playerid] = 1;
SetPlayerSkin(playerid, 12); // Frau Skin
ShowPlayerDialog(playerid,DIALOG_ALTER,DIALOG_STYLE_INPUT,"{00AFFF}"#SERVERNAME" {FFFFFF}- Information","Wir brauchen nun noch eine letzte persönliche Information von dir.\nWir möchten gerne wissen wie alt du bist, Angaben in TT.MM.JJJJ.","Weiter","Abbrechen");
}
}if(newkeys == KEY_CROUCH)
{
if(pPlayerRegisterChooseSkinMale[playerid] == 1)
{
if(GetPlayerSkin(playerid) == 2)
{
SetPlayerSkin(playerid,7);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
SetPlayerPos(playerid, 437.3533,-1748.4609,9.1031);
SetPlayerCameraPos(playerid, 438.6240,-1752.1791,8.8109);
SetPlayerCameraLookAt(playerid, 437.3533,-1748.4609,9.1031);
TogglePlayerControllable(playerid,0);
SetPlayerFacingAngle(playerid, 228.3101);
}
else if(GetPlayerSkin(playerid) == 7)
{
SetPlayerSkin(playerid, 20);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
}
else if(GetPlayerSkin(playerid) == 20)
{
SetPlayerSkin(playerid, 21);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
}
else if(GetPlayerSkin(playerid) == 21)
{
SetPlayerSkin(playerid, 24);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
}
else if(GetPlayerSkin(playerid) == 24)
{
SetPlayerSkin(playerid, 22);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
}
else if(GetPlayerSkin(playerid) == 22)
{
SetPlayerSkin(playerid, 23);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
}
else if(GetPlayerSkin(playerid) == 23)
{
SetPlayerSkin(playerid, 2);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
}
}
else if(pPlayerRegisterChooseSkinFemale[playerid] == 1)
{
if(GetPlayerSkin(playerid) == 12)
{
SetPlayerSkin(playerid, 40);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
}
else if(GetPlayerSkin(playerid) == 40)
{
SetPlayerSkin(playerid, 41);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
}
else if(GetPlayerSkin(playerid) == 41)
{
SetPlayerSkin(playerid, 55);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
}
else if(GetPlayerSkin(playerid) == 55)
{
SetPlayerSkin(playerid, 56);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
}
else if(GetPlayerSkin(playerid) == 56)
{
SetPlayerSkin(playerid, 226);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
}
else if(GetPlayerSkin(playerid) == 226)
{
SetPlayerSkin(playerid, 12);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
}
}
}if(pPlayerRegisterChooseSkinMale[playerid] == 1 || pPlayerRegisterChooseSkinFemale[playerid] == 1)
{
SpielerInfo[playerid][pSkin] = GetPlayerSkin(playerid);
SetPlayerPos(playerid,1415.3909,-1626.0238,20.6056);
SetPlayerCameraPos(playerid,1418.9369,-1629.8965,54.6056);
SetPlayerCameraLookAt(playerid,1521.6505,-1706.4551,13.5469);
pPlayerRegisterChooseSkinMale[playerid] = 0;
pPlayerRegisterChooseSkinFemale[playerid] = 0;
SpawnPlayer(playerid);
SavePlayer(playerid);
if(SpielerInfo[playerid][pTutorial] == 0)
{
ShowPlayerDialog(playerid,DIALOG_TUTORIAL,DIALOG_STYLE_MSGBOX,"{00AFFF}"#SERVERNAME" {FFFFFF}- Tutorial","Nun bist du im Tutorial von "#SERVERNAME", lies dir diese Texte aufmerksam durch.\nDu wirst gleich hier auf diesen Server starten und im Tutorial deinen Führerschein kostenlos bekommen,\nsofern du nicht im Tutorial offline gehst.","Weiter","Abbrechen");
}
}//Edit: Code eingefügt
-
Funktioniert auch nicht, wer sich das System kurz anschauen will was da buggt.
Server IP: 217.79.183.230:1111
Passwort: pepsiIhr müsst halt kurz Personalausweis beantragen und dann gehts los, damit ihr mal besser sieht was da buggt.
-
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.
Weil die Fahrschule auch extern außerhalb des Tutorials laufen soll. -
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;
} -
Der spamt das da rein, dass ist nicht normal.
Log
[expander]Code
Alles anzeigen[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
[/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");
} -
FahrschuleCP[playerid] = SetPlayerCheckpoint(playerid,1406.0134,-1649.4535,12.9377,5.0);
FahrschuleCP[playerid] = 1;
Wieso macht das kein Sinn?
Ja, ist richtig definiert. -
Funktioniert komischerweise trotzdem nicht.
-
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;
} -
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 -
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;
} -
Oben OCMD bei den Includes eingetragen?