Define Newcar errors

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
  • Hallo leute immer wenn ich mein Script Compiliere kommen die errors


    C:\Users\Administrator\Desktop\TestServer\Pawno\include\ocmd.inc(36) : warning 201: redefinition of constant/macro (symbol "OnPlayerCommandText")
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(8950) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(8955) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(8964) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(8975) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(8986) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(8998) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(9011) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(9024) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(9037) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(9050) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(9063) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(9076) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(9089) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(9102) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(9115) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(9128) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(9141) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(9154) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(9167) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(9180) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(9193) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(9206) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(9215) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(9221) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(9226) : error 017: undefined symbol "newcar"
    C:\Users\Administrator\Desktop\TestServer\gamemodes\GPR.pwn(9240) : error 017: undefined symbol "newcar"
    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    26 Errors.



    Wie behebe ich die bzw. wie definiere ich newcar...

    Meine Projekte:


    HostName: *German~Power~Roleplay*Leader ohne BW+Alle Scheine
    Address: 62.141.36.237:7777
    Mode: German Reallife[F.U.N]!
    Map: San Andreas

  • if(newcar == HitmanLeaderBullet && PlayerInfo[playerid][pLeader] != 8)
    {
    SendClientMessage(playerid,COLOR_WHITE," Dieser Wagen ist Eigentum der Hitmen!");
    RemovePlayerFromVehicle(playerid);
    }
    if(GetVehicleModel(newcar) == 525 && !IsPlayerInFrac(playerid,24))
    {
    SendClientMessage(playerid,COLOR_WHITE," Dieser Wagen ist Eigentum der Abschleppfirma!");
    RemovePlayerFromVehicle(playerid);
    }
    if(!IsPlayerInFrac(playerid,5))
    {
    for(new pv = 0; pv < sizeof(LCNVehs); pv++)
    {
    if(newcar == LCNVehs[pv])
    {
    SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
    RemovePlayerFromVehicle(playerid);
    }
    }
    }
    if(!IsPlayerInFrac(playerid,6))
    {
    for(new pv = 0; pv < sizeof(YakuzaVehs); pv++)
    {
    if(newcar == YakuzaVehs[pv])
    {
    SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
    RemovePlayerFromVehicle(playerid);
    }
    }
    }
    if(!IsPlayerInFrac(playerid,7))
    {
    for(new pv = 0; pv < sizeof(PraesiVehs); pv++)
    {
    if(newcar == PraesiVehs[pv])
    {
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }
    }
    if(!IsPlayerInFrac(playerid,8))
    {
    for(new pv = 0; pv < sizeof(HitmanVehs); pv++)
    {
    if(newcar == HitmanVehs[pv])
    {
    SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }
    }
    if(!IsPlayerInFrac(playerid,9))
    {
    for(new pv = 0; pv < sizeof(NewsVehs); pv++)
    {
    if(newcar == NewsVehs[pv])
    {
    SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }
    }
    if(!IsPlayerInFrac(playerid,10))
    {
    for(new pv = 0; pv < sizeof(TaxiVehs); pv++)
    {
    if(newcar == TaxiVehs[pv])
    {
    SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }
    }
    if(!IsPlayerInFrac(playerid,12))
    {
    for(new pv = 0; pv < sizeof(FuegosVehs); pv++)
    {
    if(newcar == FuegosVehs[pv])
    {
    SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }
    }
    if(!IsPlayerInFrac(playerid,13))
    {
    for(new pv = 0; pv < sizeof(GroveVehs); pv++)
    {
    if(newcar == GroveVehs[pv])
    {
    SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }
    }
    if(!IsPlayerInFrac(playerid,18))
    {
    for(new pv = 0; pv < sizeof(RifaVehs); pv++)
    {
    if(newcar == RifaVehs[pv])
    {
    SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }
    }
    if(!IsPlayerInFrac(playerid,14))
    {
    for(new pv = 0; pv < sizeof(BallasVehs); pv++)
    {
    if(newcar == BallasVehs[pv])
    {
    SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }
    }
    if(!IsPlayerInFrac(playerid,21))
    {
    for(new pv = 0; pv < sizeof(WheelVehs); pv++)
    {
    if(newcar == WheelVehs[pv])
    {
    SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }
    }
    if(!IsPlayerInFrac(playerid,15))
    {
    for(new pv = 0; pv < sizeof(LSBC); pv++)
    {
    if(newcar == LSBC[pv])
    {
    SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }
    }
    if(!IsPlayerInFrac(playerid,16))
    {
    for(new pv = 0; pv < sizeof(VagosVehs); pv++)
    {
    if(newcar == VagosVehs[pv])
    {
    SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }
    }
    if(PlayerInfo[playerid][pJob] != 16)
    {
    for(new pv = 0; pv < sizeof(PilotenVehs); pv++)
    {
    if(newcar == PilotenVehs[pv])
    {
    SendClientMessage(playerid,COLOR_RED,"Damit können nur Piloten fliegen!");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }
    }
    if(!IsPlayerInFrac(playerid,17))
    {
    for(new pv = 0; pv < sizeof(AztecasVehs); pv++)
    {
    if(newcar == AztecasVehs[pv])
    {
    SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }
    }
    if(!IsPlayerInFrac(playerid,19))
    {
    for(new pv = 0; pv < sizeof(RSVehs); pv++)
    {
    if(newcar == RSVehs[pv])
    {
    SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }
    }
    if(!IsPlayerInFrac(playerid,20))
    {
    for(new pv = 0; pv < sizeof(TerrorVehs); pv++)
    {
    if(newcar == TerrorVehs[pv])
    {
    SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }
    }
    if(!IsPlayerInFrac(playerid, 11) && TakingLesson[playerid] != 1)
    {
    for(new pv = 0; pv < sizeof(FahrschulVehs); pv++)
    {
    if(newcar == FahrschulVehs[pv])
    {
    SendClientMessage(playerid, COLOR_RED, "Du hast keine Schlüssel!");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }
    }
    if(!IsPlayerInFrac(playerid,23))
    {
    for(new pv = 0; pv < sizeof(RMVehs); pv++)
    {
    if(newcar == RMVehs[pv])
    {
    SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }
    }
    if(!IsPlayerInFrac(playerid,24))
    {
    for(new pv = 0; pv < sizeof(oAmtVehs); pv++)
    {
    if(newcar == oAmtVehs[pv])
    {
    SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }
    }
    if(IsACopCar(newcar))
    {
    if(IsACop(playerid) || IsPlayerInFrac(playerid,23)) { }
    else { RemovePlayerFromVehicle(playerid); }
    }
    if(IsABundeswehrCar(newcar))
    {
    if(IsPlayerInFrac(playerid,3)|| PlayerInfo[playerid][pLeader] == 7) { }
    else { RemovePlayerFromVehicle(playerid); }
    }
    if(IsAnAmbulance(newcar))
    {
    if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pLeader] == 22 || PlayerInfo[playerid][pMember] == 22) { }
    else { RemovePlayerFromVehicle(playerid); }
    }
    if(PlayerKarting[playerid] != 0)
    {
    new kart = GetPlayerVehicleID(playerid);
    if(kart==110||kart==111||kart==112||kart==113||kart==114||kart==115)
    {
    PlayerInKart[playerid] = 1;
    KartingPlayers ++;
    }
    }
    if(GetVehicleModel(newcar) == 582 || GetVehicleModel(newcar) == 488)

    Meine Projekte:


    HostName: *German~Power~Roleplay*Leader ohne BW+Alle Scheine
    Address: 62.141.36.237:7777
    Mode: German Reallife[F.U.N]!
    Map: San Andreas