Hab ein Problem!

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • forward IsACop(playerid);
    forward IsAFBICar(carid);
    forward IsAFeuerwehrauto(carid);
    forward IsATaxiCar(carid);
    forward IsALcnCar(carid);
    forward IsAnAmbulance(carid);
    forward IsAYakuzaCar(carid);
    forward IsAArmyCar(carid);
    forward IsAVagosCar(carid);
    forward IsAAztecasCar(carid);
    forward IsAHitmanCar(carid);
    forward IsAGrooveCar(carid);
    forward IsARussenCar(carid);
    forward IsAPrasiCar(carid);
    forward IsAHeelsCar(carid);
    forward IsARifaCar(carid);
    forward IsAWccCar(carid);
    forward IsAFahrCar(carid);
    forward IsABallasCar(carid);
    forward IsATerrorCar(carid);
    forward IsAAbschlepperCar(carid);
    forward IsA2ffCar(carid);
    forward IsANewsCar(carid);



    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    if(PlayerInfo[playerid][pAdmin] == 0)
    {
    if (IsAArmyCar(vehicleid) && !ispassenger)
    {
    if(IsPlayerInFrac(playerid,3)) { }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Soldat!");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }


    if (IsACopCar(vehicleid) && !ispassenger)
    {
    if(IsACop(playerid) || IsPlayerInFrac(playerid,23)) {}
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Polizist");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }


    if (IsAnAmbulance(vehicleid) && !ispassenger)
    {
    if(IsPlayerInFrac(playerid,4)) { }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Medic");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }


    if (IsAAbschlepperCar(vehicleid) && !ispassenger)
    {
    if(IsPlayerInFrac(playerid,24)) { }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein O-Amt");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }


    if (IsAFeuerwehrauto(vehicleid) && !ispassenger)
    {
    if(IsPlayerInFrac(playerid,22)) { }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Feuerwehrman");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }


    if (IsAGrooveCar(vehicleid) && !ispassenger)
    {
    if(IsPlayerInFrac(playerid,13)) { }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Groove Member");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }


    if (IsANewsCar(vehicleid) && !ispassenger)
    {
    if(IsPlayerInFrac(playerid,9)) { }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein News Reporter");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }


    if (IsATaxiCar(vehicleid) && !ispassenger)
    {
    if(IsPlayerInFrac(playerid,10)) { }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Taxifahrer");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }


    if (IsATerrorCar(vehicleid) && !ispassenger)
    {
    if(IsPlayerInFrac(playerid,20)) { }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Terrorist");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }


    if (IsABallasCar(vehicleid) && !ispassenger)
    {
    if(IsPlayerInFrac(playerid,14)) { }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Ballas Member");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }


    if (IsALcnCar(vehicleid) && !ispassenger)
    {
    if(IsPlayerInFrac(playerid,5)) { }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein LCN Member");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }


    if (IsARifaCar(vehicleid) && !ispassenger)
    {
    if(IsPlayerInFrac(playerid,18)) { }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein SF.Rifa Member");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }


    if (IsAAztecasCar(vehicleid) && !ispassenger)
    {
    if(IsPlayerInFrac(playerid,17)) { }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Aztecas Member");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }


    if (IsARussenCar(vehicleid) && !ispassenger)
    {
    if(IsPlayerInFrac(playerid,23)) { }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein RussenMafia Member");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }


    if (IsAHitmanCar(vehicleid) && !ispassenger)
    {
    if(IsPlayerInFrac(playerid,8)) { }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Hitman");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }


    if (IsAPrasiCar(vehicleid) && !ispassenger)
    {
    if(IsPlayerInFrac(playerid,7)) { }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Präsident");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }


    if (IsAFahrCar(vehicleid) && !ispassenger)
    {
    if(IsPlayerInFrac(playerid,11)) { }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Fahrlehrer");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }


    if (IsAHeelsCar(vehicleid) && !ispassenger)
    {
    if(IsPlayerInFrac(playerid,12)) { }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Hells Angels Member");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }


    if (IsAWccCar(vehicleid) && !ispassenger)
    {
    if(IsPlayerInFrac(playerid,19)) { }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein W.C.C Member");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }


    if (IsAVagosCar(vehicleid) && !ispassenger)
    {
    if(IsPlayerInFrac(playerid,16)) { }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein L.S Vagos Member");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }


    if (IsAYakuzaCar(vehicleid) && !ispassenger)
    {
    if(IsPlayerInFrac(playerid,6)) { }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Yakuza Member");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }


    if (IsA2ffCar(vehicleid) && !ispassenger)
    {
    if(IsPlayerInFrac(playerid,15)) { }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein 2F2F Member");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }


    if (IsAFBICar(vehicleid) && !ispassenger)
    {
    if(IsPlayerInFrac(playerid,21)) { }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein F.B.I");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }
    }
    return 1;
    }
    public Drag(giveplayerid, playerid)
    {
    new Float:x, Float:y, Float:z;
    GetPlayerPos(giveplayerid, x, y, z);
    SetPlayerPos(playerid, x, y+1, z);
    SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));
    }
    public IsAnInstructor(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==11)
    {
    return 1;
    }
    if(leader==11)
    {
    return 1;
    }
    }
    return 0;
    }


    public IsAMember(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==5 || member==6 || member==8 || member==12 || member==13 || member==14 || member==14 || member==16 || member==17 || member==18 || member==19 || member==20 || member==21 || member==22 || member==23 || member==24)
    {
    return 1;
    }
    if(leader==5 || leader==6 || leader==8 || leader==12 || leader==13 || leader==14 || leader==15 || leader==16 || leader==17 || leader==18 || leader==19 || leader==20 || leader==21 || leader==22 || leader==23 || leader==24)
    {
    return 1;
    }
    }
    return 0;
    }


    public IsADChatter(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==1||member==2||member==3||member==4||member==21||member==22||member==24||leader==1||leader==2||leader==3||leader==4||leader==7||leader==21||leader==22||leader==24)
    {
    return 1;
    }
    }
    return 0;
    }



    public IsACop(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==1 || member==2 || member==3 || member==21)
    {
    return 1;
    }
    else if(leader==1 || leader==2 || leader==3 || leader==7 || leader==21)
    {
    return 1;
    }
    }
    return 0;
    }



    wenn ich compile kommen 18errors mit wenn ich es compile kommt das :
    D:\Dokumente und Einstellungen\user\Desktop\Gta San Andreas\gamemodes\CCR.pwn(3077) : error 004: function "IsAAbschlepperCar" is not implemented


    sind insgesamt 18errors


    was hab ich den falsch gemacht?! da stimmt doch alles oder ?! :P


    hilft mir bitte :)


    Mfg KingCaN

  • Wo und wie hast du public IsAAbschlepperCar erstellt?

    Mfg Templer


    >>Dein Breadfish-Thema im Unterforum ScriptingBase / Scriptingwünsche wurde nicht richtig beantworter?<<
    >>Es handelt sich um ein Programmier Problem und du nicht einfach weiter kommst wo der Fehler sein könnte?<<
    Dann melde dich bei mir über die PN-Funktion indem du den Link zu deinem Breadfish-Themen Problem schickst.
    Voraussetzung:
    Thema älter als 1 Tag und im Breadfish Forum gespostet!