Ich bekomme folgende Meldungen beim Compilen..
hab schon tausendmal drüber geschaut, aber heut ist glaube nicht mein Tag ich finde den Fehler nicht...ò.ò
PruefungsSchritt[playerid] = 0;
MotorradSchritt[playerid] = 0; */
if(strcmp(cmd,"/fahrschule",true)==0)
{
if(IsPlayerInRangeOfPoint(playerid,3.0,-2032.8392,-117.5576,1035.1719))
{
{
new fahrlehreronline;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 11 || PlayerInfo[i][pLeader] == 11)
{
fahrlehreronline ++;
}
}
}
if(fahrlehreronline > 0)
{
ShowInfoDialog(playerid,"Information","Es sind Fahrlehrer Online benutze /lehrer !");
return 1;
}
if(GetPlayerMoney(playerid) > 1099)
{
ShowPlayerDialog(playerid,DIALOG_AUTOFAHRSCHULE, DIALOG_STYLE_LIST,"Fahrschule","Autofuehrerschein (3.300$ LvL 1)\nLKW-Schein(14.850$ LvL 3)\nFlugschein(61.600$ LvL 5)\nWaffenschein(100.000$ LvL 4)\nMotorradschein(26.400$ LvL 4)\nBootsschein(6.000$ LvL 2)Angelschein(1.100$ LvL 1)","Kaufen","Abbrechen");
return 1;
}
else
{
SendClientMessage(playerid,COLOR_RED,"Du hast nicht genug Geld!");
return 1;
}
}
}
return 1;
}
//_____________________________________________________________
Function OnPlayerExitedMenu(playerid)
{
new Menu:CurrentMenu = GetPlayerMenu(playerid);
if(CurrentMenu == BSMK || CurrentMenu == PMK || CurrentMenu == CBKM)
{
UnFreezePlayer(playerid);
}
if(CurrentMenu == PruefungMenu && PlayerInfo[playerid][pCarLic] == 0)
{
ShowMenuForPlayer(PruefungMenu,playerid);
}
if(CurrentMenu == MotorradMenu && PlayerInfo[playerid][pMotoLic] == 0)
{
ShowMenuForPlayer(MotorradMenu,playerid);
}
return 1;
}
Function Motorrad(playerid)
{
MotorradSchritt[playerid]++;
if(MotorradSchritt[playerid] == 2)
{
for(new msg=0; msg<50; msg++) SendClientMessage(playerid,COLOR_WHITE," ");
GameTextForPlayer(playerid,"~w~WILLKOMMEN",5000,3);
SendClientMessage(playerid,COLOR_LIGHTBLUE, "Willkommen bei der schnellen Fahrschule von Reallife-Zocker.");
SendClientMessage(playerid,COLOR_LIGHTBLUE, "Dir werden jetzt auf die Schnelle die Grundregeln beigebracht.Kurz gesagt Straßenverkehrsordnung.");
}
else if(MotorradSchritt[playerid] == 10)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE," ");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Da du dich für den Motorrad Führerschein entschieden hast folgen gleich ein Paar Fragen");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Es geht um Grundwissen fragen die man eigentlich Problemlos kenne sollte");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Du darfst als Motorrad Fahrer in der Stadt nur 80Km/h fahren.Ausserhalb Unbegrenzt");
}
else if(MotorradSchritt[playerid] == 25)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE," ");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Die Straßenverkehrsordnung ist einzuhalten. Die Einzigen, die diese nicht beachten dürfen sind Notdienste");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Mit einem Motorrad musst du innerhalb der Stadt langsam beschleunigen.");
}
else if(MotorradSchritt[playerid] == 40)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE," ");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"An deinem Motorrad muss immer alles funktionieren. Und du musst alle Papiere dabei haben");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"bezüglich des Motorrads");
}
else if(MotorradSchritt[playerid] == 50)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE," ");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Die Prüfung beginnt jetzt. Das Admin Team wünscht dir Viel Glück");
}
else if(MotorradSchritt[playerid] == 60)
{
for(new msg=0; msg<50; msg++) SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Frage 1:");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Was musst du immer mit dir führen?");
SendClientMessage(playerid,COLOR_LIGHTBLUE," a) Kondome");
SendClientMessage(playerid,COLOR_LIGHTBLUE," b) Lizenz & Personalausweis");
SendClientMessage(playerid,COLOR_LIGHTBLUE," c) Zigaretten");
SendClientMessage(playerid,COLOR_LIGHTBLUE," d) Deospray");
ShowMenuForPlayer(MotorradMenu,playerid);
KillTimer(MotorradTimer[playerid]);
}
else if(MotorradSchritt[playerid] == 80)
{
for(new msg=0; msg<50; msg++) SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Frage 2:");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Was muss an deinem Fahrzeug funktionieren?");
SendClientMessage(playerid,COLOR_LIGHTBLUE," a) Die Hupe ");
SendClientMessage(playerid,COLOR_LIGHTBLUE," b) Die Spiegel");
SendClientMessage(playerid,COLOR_LIGHTBLUE," c) Alles");
SendClientMessage(playerid,COLOR_LIGHTBLUE," d) Der Motor");
ShowMenuForPlayer(MotorradMenu,playerid);
KillTimer(MotorradTimer[playerid]);
}
else if(MotorradSchritt[playerid] == 100)
{
for(new msg=0; msg<50; msg++) SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Frage 3:");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Wie beschleunigt man in einer Stadt?");
SendClientMessage(playerid,COLOR_LIGHTBLUE," a) Langsam");
SendClientMessage(playerid,COLOR_LIGHTBLUE," b) Schnell");
SendClientMessage(playerid,COLOR_LIGHTBLUE," c) Egal Hauptsache man fährt");
SendClientMessage(playerid,COLOR_LIGHTBLUE," d) Garnicht");
ShowMenuForPlayer(MotorradMenu,playerid);
KillTimer(MotorradTimer[playerid]);
}
else if(MotorradSchritt[playerid] == 120)
{
for(new msg=0; msg<50; msg++) SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Frage 2:");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Wer darf die Verkehrsregeln missachten?");
SendClientMessage(playerid,COLOR_LIGHTBLUE," a) Niemand");
SendClientMessage(playerid,COLOR_LIGHTBLUE," b) Nur ich");
SendClientMessage(playerid,COLOR_LIGHTBLUE," c) Beamte im Dienst");
SendClientMessage(playerid,COLOR_LIGHTBLUE," d) Der Pizzaservice");
ShowMenuForPlayer(MotorradMenu,playerid);
KillTimer(MotorradTimer[playerid]);
}
else if(MotorradSchritt[playerid] == 125)
{
for(new msg=0; msg<50; msg++) SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Du hast nun den Motorrad Führerschein!");
PlayerInfo[playerid][pMotoLic] = 1;
MotorradSchritt[playerid] = 0;
UnFreezePlayer(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 3);
SetPlayerPosEx(playerid,2047.9828,-1910.5338,13.5469,267.7168);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetCameraBehindPlayer(playerid);
KillTimer(MotorradTimer[playerid]);
}
return 1;
}
Function OnPlayerPruefung(playerid)
{
PruefungsSchritt[playerid]++;
if(PruefungsSchritt[playerid] == 2)
{
for(new msg=0; msg<50; msg++) SendClientMessage(playerid,COLOR_WHITE," ");
GameTextForPlayer(playerid,"~w~WILLKOMMEN",5000,3);
SendClientMessage(playerid,COLOR_LIGHTBLUE," Willkommen bei der schnellen Fahrschule von Reallife-Zocker.");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Dir werden jetzt auf die Schnelle die Grundregeln beigebracht.Kurz gesagt Straßenverkehrsordnung.");
}
else if(PruefungsSchritt[playerid] == 10)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE," ");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Bei uns gild meistens die Rechts vor Links Regel. Es sei denn es ist mit Ampeln geregelt.");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Die einzigen die diese Regeln missachten dürfen sind Staatsbeamte die im Dienst sind!");
}
else if(PruefungsSchritt[playerid] == 25)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE," ");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Sollte dir ein Beamter mit Sirene begegnen musst du diesen platz machen");
SendClientMessage(playerid,COLOR_LIGHTBLUE," und durchfahren lassen.");
}
else if(PruefungsSchritt[playerid] == 40)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE," ");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Solltest du in eine Verkehrskontrolle geraten musst du Rechtsran fahren");
SendClientMessage(playerid,COLOR_LIGHTBLUE," und dem Beamten deine Lizenzen & Personalausweis zeigen dies funktioniert mit /show.");
}
else if(PruefungsSchritt[playerid] == 58)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE," ");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Damit dein Fahrzeug auch nicht sinnlos herumsteht und auch");
SendClientMessage(playerid,COLOR_LIGHTBLUE," nicht abgeschleppt wird, musst du es Ordnungsgemäß Parken.");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Park es am besten auf einem Parkplatz.");
}
else if(PruefungsSchritt[playerid] == 72)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE," ");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Wir hoffen du hast dir alles gut gemerkt,");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Die Prüfung geht sofort los. Das Admin Team wünscht dir Viel Glück");
}
else if(PruefungsSchritt[playerid] == 90)
{
for(new msg=0; msg<50; msg++) SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Frage 1:");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Welche Vorfahrtsregel gilt auf diesem Server?");
SendClientMessage(playerid,COLOR_LIGHTBLUE," a) Beste vor Schlechteste");
SendClientMessage(playerid,COLOR_LIGHTBLUE," b) Garkeine");
SendClientMessage(playerid,COLOR_LIGHTBLUE," c) Rechts vor Links");
SendClientMessage(playerid,COLOR_LIGHTBLUE," d) Links vor Rechts");
ShowMenuForPlayer(PruefungMenu,playerid);
KillTimer(PruefungsTimer[playerid]);
}
else if(PruefungsSchritt[playerid] == 100)
{
for(new msg=0; msg<50; msg++) SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Frage 2:");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Was machst du wenn ein Beamter dir ein Beamter in Not Begegnet?");
SendClientMessage(playerid,COLOR_LIGHTBLUE," a) Ich fahre ganz normal weiter");
SendClientMessage(playerid,COLOR_LIGHTBLUE," b) Auf der Straße Parken");
SendClientMessage(playerid,COLOR_LIGHTBLUE," c) Rechts ran fahren und vorbei lassen");
SendClientMessage(playerid,COLOR_LIGHTBLUE," d) Fenster runter und Winken");
ShowMenuForPlayer(PruefungMenu,playerid);
KillTimer(PruefungsTimer[playerid]);
}
else if(PruefungsSchritt[playerid] == 110)
{
for(new msg=0; msg<50; msg++) SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Frage 3:");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Was machst du wenn eine Ampel Rot anzeigt?");
SendClientMessage(playerid,COLOR_LIGHTBLUE," a) Ich halte an.");
SendClientMessage(playerid,COLOR_LIGHTBLUE," b) Ich halte und warte bis sie Grün aufleuchtet");
SendClientMessage(playerid,COLOR_LIGHTBLUE," c) Ich parke mein Auto und steige aus");
SendClientMessage(playerid,COLOR_LIGHTBLUE," d) Ich fahre einfach weiter");
ShowMenuForPlayer(PruefungMenu,playerid);
KillTimer(PruefungsTimer[playerid]);
}
else if(PruefungsSchritt[playerid] == 120)
{
for(new msg=0; msg<50; msg++) SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Frage 4:");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Wie Schnell darfst du in einer Spielstraße fahren?(Grundwissen)");
SendClientMessage(playerid,COLOR_LIGHTBLUE," a) 50-80");
SendClientMessage(playerid,COLOR_LIGHTBLUE," b) Schnell");
SendClientMessage(playerid,COLOR_LIGHTBLUE," c) Langsam");
SendClientMessage(playerid,COLOR_LIGHTBLUE," d) Schrittgeschwindigkeit");
ShowMenuForPlayer(PruefungMenu,playerid);
KillTimer(PruefungsTimer[playerid]);
}
else if(PruefungsSchritt[playerid] == 125)
{
for(new msg=0; msg<50; msg++) SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_LIGHTBLUE," Du hast nun den Führerschein!");
PlayerInfo[playerid][pCarLic] = 1;
PruefungsSchritt[playerid] = 0;
UnFreezePlayer(playerid);
SetPlayerPos(playerid,2047.8433,-1905.1482,13.5469);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetCameraBehindPlayer(playerid);
KillTimer(PruefungsTimer[playerid]);
}
return 1;
}
Function OnPlayerFailedPruefung(playerid)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Du bist leider durchgefallen.\nVersuche es beim nächsten mal besser!");
UnFreezePlayer(playerid);
SetPlayerPos(playerid,2047.8433,-1905.1482,13.5469);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
if(CurrentMenu == MotorradMenu)
{
if(MotorradSchritt[playerid] == 60) //Frage 1
{
if(antwort == 2)
{
GameTextForPlayer(playerid,"~g~RICHTIG",5000,3);
MotorradTimer[playerid] = SetTimerEx("Motorrad",1000,1,"i",playerid);
}
else OnPlayerFailedPruefung(playerid);
}
if(MotorradSchritt[playerid] == 80) //Frage 2
{
if(antwort == 3)
{
GameTextForPlayer(playerid,"~g~RICHTIG",5000,3);
MotorradTimer[playerid] = SetTimerEx("Motorrad",1000,1,"i",playerid);
}
else OnPlayerFailedPruefung(playerid);
}
if(MotorradSchritt[playerid] == 100)//Frage 3
{
if(antwort == 1)
{
GameTextForPlayer(playerid,"~g~RICHTIG",5000,3);
MotorradTimer[playerid] = SetTimerEx("Motorrad",1000,1,"i",playerid);
}
else OnPlayerFailedPruefung(playerid);
}
if(MotorradSchritt[playerid] == 120)//Frage 4
{
if(antwort == 3)
{
GameTextForPlayer(playerid,"~g~BESTANDEN~n~~w~Herzlichen Glueckwunsch zum Fuehrerschein!",5000,3);
MotorradTimer[playerid] = SetTimerEx("Motorrad",1000,1,"i",playerid);
}
else OnPlayerFailedPruefung(playerid);
}
HideMenuForPlayer(MotorradMenu,playerid);
}
if(CurrentMenu == PruefungMenu)
{
new antwort = row+1;
if(PruefungsSchritt[playerid] == 90) // Frage 1
{
if(antwort == 3)
{
GameTextForPlayer(playerid,"~g~RICHTIG",5000,3);
PruefungsTimer[playerid] = SetTimerEx("OnPlayerPruefung",1000,1,"i",playerid);
}
else OnPlayerFailedPruefung(playerid);
}
else if(PruefungsSchritt[playerid] == 100) // Frage 2
{
if(antwort == 3)
{
GameTextForPlayer(playerid,"~g~RICHTIG",5000,3);
PruefungsTimer[playerid] = SetTimerEx("OnPlayerPruefung",1000,1,"i",playerid);
}
else OnPlayerFailedPruefung(playerid);
}
else if(PruefungsSchritt[playerid] == 110) // Frage 3
{
if(antwort == 1 || antwort == 2)
{
GameTextForPlayer(playerid,"~g~RICHTIG",5000,3);
PruefungsTimer[playerid] = SetTimerEx("OnPlayerPruefung",1000,1,"i",playerid);
}
else OnPlayerFailedPruefung(playerid);
}
else if(PruefungsSchritt[playerid] == 120) // Frage 4
{
if(antwort == 3 || antwort == 4)
{
GameTextForPlayer(playerid,"~g~BESTANDEN~n~~w~Herzlichen Glueckwunsch zum Fuehrerschein!",5000,3);
PruefungsTimer[playerid] = SetTimerEx("OnPlayerPruefung",1000,1,"i",playerid);
}
else OnPlayerFailedPruefung(playerid);
}
HideMenuForPlayer(PruefungMenu,playerid);
}
Alles anzeigen