TeamCar-Error HILFE

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
  • C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(73) : warning 213: tag mismatch
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(74) : warning 213: tag mismatch
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(75) : warning 213: tag mismatch
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(76) : warning 213: tag mismatch
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(77) : warning 213: tag mismatch
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(78) : warning 213: tag mismatch
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(79) : warning 213: tag mismatch
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(80) : warning 213: tag mismatch
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(81) : warning 213: tag mismatch
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(82) : warning 213: tag mismatch
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(83) : warning 213: tag mismatch
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(84) : warning 213: tag mismatch
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(85) : warning 213: tag mismatch
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(86) : warning 213: tag mismatch
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(87) : warning 213: tag mismatch
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(88) : warning 213: tag mismatch
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(89) : warning 213: tag mismatch
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(94) : error 021: symbol already defined: "AddPlayerClass"
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(98) : error 010: invalid function or declaration
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(130) : error 021: symbol already defined: "Create3DTextLabel"
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(132) : error 021: symbol already defined: "CreatePickup"
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(135) : error 021: symbol already defined: "Create3DTextLabel"
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(137) : error 021: symbol already defined: "CreatePickup"
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(138) : error 010: invalid function or declaration
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(140) : error 054: unmatched closing brace ("}")
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(152) : error 017: undefined symbol "GroveStreet"
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(161) : warning 213: tag mismatch
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    9 Errors.



    //Polizei Auswahl
    AddPlayerClass(265,1579.4519,-1634.8011,13.5622,356.1275,24,500,31,1000,29,1000);
    AddPlayerClass(266,1579.4519,-1634.8011,13.5622,356.1275,24,500,31,1000,29,1000);
    AddPlayerClass(267,1579.4519,-1634.8011,13.5622,356.1275,24,500,31,1000,29,1000);

    Cars[Cops] = AddStaticVehicle(427,1603.7855,-1608.5659,13.6376,178.4725,0,1); // PolizeiEnforcer 1
    Cars[Cops] = AddStaticVehicle(427,1598.0254,-1607.8481,13.5733,178.9632,0,1); // PolizeiEnforcer 2
    Cars[Cops] = AddStaticVehicle(427,1592.5045,-1608.0096,13.5189,178.5793,0,1); // PolizeiEnforcer 3
    Cars[Cops] = AddStaticVehicle(427,1586.7395,-1608.0833,13.5148,178.7516,0,1); // PolizeiEnforcer 4
    Cars[Cops] = AddStaticVehicle(427,1581.9268,-1607.7037,13.5147,178.0450,0,1); // PolizeiEnforcer 5
    Cars[Cops] = AddStaticVehicle(596,1575.8486,-1607.3921,13.1043,178.9452,0,1); // PolizeiAuto 1
    Cars[Cops] = AddStaticVehicle(596,1570.5522,-1607.2411,13.1044,178.5272,0,1); // PolizeiAuto 2
    Cars[Cops] = AddStaticVehicle(596,1566.3879,-1606.9556,13.1040,178.8037,0,1); // PolizeiAuto 3
    Cars[Cops] = AddStaticVehicle(596,1562.0411,-1606.6685,13.1042,178.7900,0,1); // PolizeiAuto 4
    Cars[Cops] = AddStaticVehicle(596,1557.9473,-1606.6644,13.1019,178.2569,0,1); // PolizeiAuto 5
    Cars[Cops] = AddStaticVehicle(599,1545.7119,-1615.0981,13.5723,270.4102,0,1); // PolizeiJeep 1
    Cars[Cops] = AddStaticVehicle(599,1545.8092,-1610.0946,13.5710,270.2557,0,1); // PolizeiJeep 2
    Cars[Cops] = AddStaticVehicle(599,1545.7599,-1605.0392,13.5726,270.9627,0,1); // PolizeiJeep 3
    Cars[Cops] = AddStaticVehicle(523,1605.1315,-1630.6987,13.0918,90.4368,0,0); // PolizeiMotorrad 1
    Cars[Cops] = AddStaticVehicle(523,1604.9148,-1628.4031,13.0887,90.0730,0,0); // PolizeiMotorrad 2
    Cars[Cops] = AddStaticVehicle(523,1604.7166,-1626.3622,13.0874,90.7656,0,0); // PolizeiMotorrad 3
    Cars[Cops] = AddStaticVehicle(523,1604.7373,-1624.4265,13.0855,90.9977,0,0); // PolizeiMotorrad 4
    Cars[Cops] = AddStaticVehicle(523,1604.8424,-1622.4253,13.0876,90.9957,0,0); // PolizeiMotorrad 5
    Cars[Cops] = AddStaticVehicle(523,1604.5532,-1620.2802,13.0805,90.1311,0,0); // PolizeiMotorrad 6
    return 1;
    }


    //Mafia Auswahl
    AddPlayerClass(111,1083.7567,-1226.7904,15.8203,247.2682,24,500,30,1000,29,1000);
    AddPlayerClass(124,1083.7567,-1226.7904,15.8203,247.2682,24,500,30,1000,29,1000);
    AddPlayerClass(120,1083.7567,-1226.7904,15.8203,247.2682,24,500,30,1000,29,1000);

    Cars[Cops] = AddStaticVehicle(402,1087.4744,-1250.8728,15.6589,359.2153,0,0); // MafiaAuto 1
    Cars[Cops] = AddStaticVehicle(402,1091.2317,-1250.0966,15.6588,359.3017,0,0); // MafiaAuto 2
    Cars[Cops] = AddStaticVehicle(402,1096.3784,-1250.7358,15.6571,359.0631,0,0); // MafiaAuto 3
    Cars[Cops] = AddStaticVehicle(402,1100.5239,-1250.1610,15.6538,359.5387,0,0); // MafiaAuto 4
    Cars[Cops] = AddStaticVehicle(402,1104.7896,-1250.6335,15.6520,359.7735,0,0); // MafiaAuto 5
    Cars[Cops] = AddStaticVehicle(451,1109.8159,-1227.3224,15.5279,181.1787,0,0); // MafiaTurismo 1
    Cars[Cops] = AddStaticVehicle(451,1105.2802,-1227.4161,15.5339,181.0406,0,0); // MafiaTurismo 2
    Cars[Cops] = AddStaticVehicle(451,1100.8446,-1227.3027,15.5273,181.1379,0,0); // MafiaTurismo 3
    Cars[Cops] = AddStaticVehicle(451,1096.6696,-1227.0038,15.5264,181.1659,0,0); // MafiaTurismo 4
    Cars[Cops] = AddStaticVehicle(451,1092.6292,-1227.0093,15.5264,181.0436,0,0); // MafiaTurismo 5
    Cars[Cops] = AddStaticVehicle(461,1095.1047,-1219.9535,17.3808,351.3861,0,0); // MafiaMotorrad 1
    Cars[Cops] = AddStaticVehicle(461,1097.2728,-1219.6458,17.3733,351.0743,0,0); // MafiaMotorrad 2
    Cars[Cops] = AddStaticVehicle(461,1101.5051,-1219.4642,17.3878,351.5267,0,0); // MafiaMotorrad 4
    Cars[Cops] = AddStaticVehicle(461,1099.3617,-1219.5437,17.3750,351.1716,0,0); // MafiaMotorrad 3
    Cars[Cops] = AddStaticVehicle(461,1103.5846,-1219.5968,17.3777,351.3860,0,0); // MafiaMotorrad 5


  • 1. ich weiß nicht wieso du bei AddPlayerClass Autos erstellt hast?..


    2. mach mal bei #define:


    new Cops[ANZAHL DER COP WAGEN];


    new Mafia[ANZAHL DER MAFIA WAGEN];


    und bei den einzelnen AddstaticVehicle einfach dahinter Cops[0] == AddStaticVehicle(....(beispiel wenn du 15cars hast musst du von 0 anfangen und bis 14 machen weil das Script immer von 0 anfängt zu zählen.)


    MFG


    40Polat_Alemdar95


    //Schuldige, kein Define sondern ganz oben im Script "new Cops[ANZAHL DER COP WAGEN]; und new Mafia[ANZAHL DER MAFIA WAGEN];"

  • du musst
    new Cars[hier die anzahl der autos];
    und dann
    Cars[0] = AddStaticVehicle(427,1603.7855,-1608.5659,13.6376,178.4725,0,1); // PolizeiEnforcer 1
    Cars[1] = AddStaticVehicle(427,1598.0254,-1607.8481,13.5733,178.9632,0,1); // PolizeiEnforcer 2
    Cars[2] = AddStaticVehicle(427,1592.5045,-1608.0096,13.5189,178.5793,0,1); // PolizeiEnforcer 3
    Cars[3] = AddStaticVehicle(427,1586.7395,-1608.0833,13.5148,178.7516,0,1); // PolizeiEnforcer 4
    //usw

  • Der DarkRevolution hat mehr drauf als du, ist nur leider derzeit geistig abwesend :D


    Wie auch immer, BTT:
    Total falsch angesetzt.
    AddStaticVehicle returnt die VehileID. Du setzt also ein und die selbe Variable, die du so ganz nebenbei total falsch definiert hast, immer wieder auf ein anderes Fahrzeug, was total sinnlos ist.

  • Jetzt hab ich des? ^^


    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(77) : warning 215: expression has no effect
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(78) : warning 215: expression has no effect
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(79) : warning 215: expression has no effect
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(80) : warning 215: expression has no effect
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(81) : warning 215: expression has no effect
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(82) : warning 215: expression has no effect
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(83) : warning 215: expression has no effect
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(84) : warning 215: expression has no effect
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(85) : warning 215: expression has no effect
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(86) : warning 215: expression has no effect
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(87) : warning 215: expression has no effect
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(88) : warning 215: expression has no effect
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(89) : warning 215: expression has no effect
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(90) : warning 215: expression has no effect
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(91) : warning 215: expression has no effect
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(92) : warning 215: expression has no effect
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(93) : warning 215: expression has no effect
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(94) : warning 215: expression has no effect
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(95) : warning 215: expression has no effect
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(100) : error 021: symbol already defined: "AddPlayerClass"
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(105) : error 010: invalid function or declaration
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(137) : error 021: symbol already defined: "Create3DTextLabel"
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(139) : error 021: symbol already defined: "CreatePickup"
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(142) : error 021: symbol already defined: "Create3DTextLabel"
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(144) : error 021: symbol already defined: "CreatePickup"
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(145) : error 010: invalid function or declaration
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(147) : error 054: unmatched closing brace ("}")
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(159) : warning 213: tag mismatch
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(168) : warning 213: tag mismatch
    C:\Users\Hami\Desktop\Happy Deathmatch\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(617) : warning 203: symbol is never used: "MafiaCar"


    8 Errors.


    //TeamCars
    enum TeamCars
    {
    Mafia,
    Cops
    }


    new Cars[TeamCars];



    //Team Cars
    new CopsCar[19];
    new MafiaCar[15];


    //Cop Cars
    CopsCar[ 0] == AddStaticVehicle(427,1603.7855,-1608.5659,13.6376,178.4725,0,1); // PolizeiEnforcer 1
    CopsCar[ 1] == AddStaticVehicle(427,1598.0254,-1607.8481,13.5733,178.9632,0,1); // PolizeiEnforcer 2
    CopsCar[ 2] == AddStaticVehicle(427,1592.5045,-1608.0096,13.5189,178.5793,0,1); // PolizeiEnforcer 3
    CopsCar[ 3] == AddStaticVehicle(427,1586.7395,-1608.0833,13.5148,178.7516,0,1); // PolizeiEnforcer 4
    CopsCar[ 4] == AddStaticVehicle(427,1581.9268,-1607.7037,13.5147,178.0450,0,1); // PolizeiEnforcer 5
    CopsCar[ 5] == AddStaticVehicle(596,1575.8486,-1607.3921,13.1043,178.9452,0,1); // PolizeiAuto 1
    CopsCar[ 6] == AddStaticVehicle(596,1570.5522,-1607.2411,13.1044,178.5272,0,1); // PolizeiAuto 2
    CopsCar[ 7] == AddStaticVehicle(596,1566.3879,-1606.9556,13.1040,178.8037,0,1); // PolizeiAuto 3
    CopsCar[ 8] == AddStaticVehicle(596,1562.0411,-1606.6685,13.1042,178.7900,0,1); // PolizeiAuto 4
    CopsCar[ 9] == AddStaticVehicle(596,1557.9473,-1606.6644,13.1019,178.2569,0,1); // PolizeiAuto 5
    CopsCar[10] == AddStaticVehicle(599,1545.7119,-1615.0981,13.5723,270.4102,0,1); // PolizeiJeep 1
    CopsCar[11] == AddStaticVehicle(599,1545.8092,-1610.0946,13.5710,270.2557,0,1); // PolizeiJeep 2
    CopsCar[12] == AddStaticVehicle(599,1545.7599,-1605.0392,13.5726,270.9627,0,1); // PolizeiJeep 3
    CopsCar[13] == AddStaticVehicle(523,1605.1315,-1630.6987,13.0918,90.4368,0,0); // PolizeiMotorrad 1
    CopsCar[14] == AddStaticVehicle(523,1604.9148,-1628.4031,13.0887,90.0730,0,0); // PolizeiMotorrad 2
    CopsCar[15] == AddStaticVehicle(523,1604.7166,-1626.3622,13.0874,90.7656,0,0); // PolizeiMotorrad 3
    CopsCar[16] == AddStaticVehicle(523,1604.7373,-1624.4265,13.0855,90.9977,0,0); // PolizeiMotorrad 4
    CopsCar[17] == AddStaticVehicle(523,1604.8424,-1622.4253,13.0876,90.9957,0,0); // PolizeiMotorrad 5
    CopsCar[18] == AddStaticVehicle(523,1604.5532,-1620.2802,13.0805,90.1311,0,0); // PolizeiMotorrad 6
    return 1;
    }


    //Mafia Cars
    MafiaCar[ 0] == AddStaticVehicle(402,1087.4744,-1250.8728,15.6589,359.2153,0,0); // MafiaAuto 1
    MafiaCar[ 1] == AddStaticVehicle(402,1091.2317,-1250.0966,15.6588,359.3017,0,0); // MafiaAuto 2
    MafiaCar[ 2] == AddStaticVehicle(402,1096.3784,-1250.7358,15.6571,359.0631,0,0); // MafiaAuto 3
    MafiaCar[ 3] == AddStaticVehicle(402,1100.5239,-1250.1610,15.6538,359.5387,0,0); // MafiaAuto 4
    MafiaCar[ 4] == AddStaticVehicle(402,1104.7896,-1250.6335,15.6520,359.7735,0,0); // MafiaAuto 5
    MafiaCar[ 5] == AddStaticVehicle(451,1109.8159,-1227.3224,15.5279,181.1787,0,0); // MafiaTurismo 1
    MafiaCar[ 6] == AddStaticVehicle(451,1105.2802,-1227.4161,15.5339,181.0406,0,0); // MafiaTurismo 2
    MafiaCar[ 7] == AddStaticVehicle(451,1100.8446,-1227.3027,15.5273,181.1379,0,0); // MafiaTurismo 3
    MafiaCar[ 8] == AddStaticVehicle(451,1096.6696,-1227.0038,15.5264,181.1659,0,0); // MafiaTurismo 4
    MafiaCar[ 9] == AddStaticVehicle(451,1092.6292,-1227.0093,15.5264,181.0436,0,0); // MafiaTurismo 5
    MafiaCar[10] == AddStaticVehicle(461,1095.1047,-1219.9535,17.3808,351.3861,0,0); // MafiaMotorrad 1
    MafiaCar[11] == AddStaticVehicle(461,1097.2728,-1219.6458,17.3733,351.0743,0,0); // MafiaMotorrad 2
    MafiaCar[12] == AddStaticVehicle(461,1101.5051,-1219.4642,17.3878,351.5267,0,0); // MafiaMotorrad 4
    MafiaCar[13] == AddStaticVehicle(461,1099.3617,-1219.5437,17.3750,351.1716,0,0); // MafiaMotorrad 3
    MafiaCar[14] == AddStaticVehicle(461,1103.5846,-1219.5968,17.3777,351.3860,0,0); // MafiaMotorrad 5




    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    if(newstate == 1)
    {
    new CarCheck = GetPlayerVehicleID(playerid);
    if(CarCheck == Cars[Mafia] )
    {
    if(gTeam[playerid] != 1)
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid, 0xFF0000FF, "Du bist nicht bei der Mafia!");
    return 1;
    }
    }
    if(CarCheck == Cars[Cops] )
    {
    if(gTeam[playerid] != 0)
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid, 0xFF0000FF, "Du bist nicht bei den Cops!");
    return 1;
    }
    }
    return 1;
    }
    return 1;
    }


    ?( ?( ?( ?( ?(