habe paar warnings bitte um 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
  • Hey habe ein paar warnings und brauche hilfe :)


    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(6271) : warning 225: unreachable code
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(55161) : warning 225: unreachable code
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    Header size: 14648 bytes
    Code size: 2728816 bytes
    Data size: 27911584 bytes
    Stack/heap size: 32768 bytes; estimated max. usage: unknown, due to recursion
    Total requirements:30687816 bytes


    8 Warnings.


    //freizeitautos
    AddStaticVehicle(571,54,65,85,42,119,161,0,0,0,0,0,0); //kart


    wie kriege ich die weg?

  • dann 11 warnings


    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(6271) : warning 225: unreachable code
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 213: tag mismatch
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 213: tag mismatch
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12380) : warning 225: unreachable code
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(55162) : warning 225: unreachable code
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    Header size: 14648 bytes
    Code size: 2728728 bytes
    Data size: 27911584 bytes
    Stack/heap size: 32768 bytes; estimated max. usage: unknown, due to recursion
    Total requirements:30687728 bytes


    11 Warnings.

  • //========== SBUSINESS LABELS =============//
    for(new sb = 0; sb < sizeof(SBizzInfo); sb++)
    {
    new string4[128];
    if(SBizzInfo[sb][sbOwned] == 0)
    {
    format(string4, sizeof(string4), "[Business zu Verkaufen - %s]\nPreis: %d$\nLevel: %d", SBizzInfo[sb][sbMessage],SBizzInfo[sb][sbBuyPrice],SBizzInfo[sb][sbLevelNeeded]);
    SBizzInfo[sb][sbText] = Create3DTextLabel(string4,COLOR_FORSELL,SBizzInfo[sb][sbEntranceX], SBizzInfo[sb][sbEntranceY], SBizzInfo[sb][sbEntranceZ]+1,15.0,0);
    }
    if(SBizzInfo[sb][sbOwned] == 1)
    {
    format(string4, sizeof(string4), "[%s]\nInhaber: %s\nTeilhaber: %s\nEintrittspreis: %d$\nLevel: %d\nProdukte: %d/%d\nPreis pro Produkt: %d", SBizzInfo[sb][sbMessage],SBizzInfo[sb][sbOwner],SBizzInfo[sb][sbExtortion],SBizzInfo[sb][sbEntranceCost],SBizzInfo[sb][sbLevelNeeded],SBizzInfo[sb][sbProducts],SBizzInfo[sb][sbMaxProducts], SBizzInfo[sb][sbPriceProd]);
    SBizzInfo[sb][sbText] = Create3DTextLabel(string4,COLOR_BUYED,SBizzInfo[sb][sbEntranceX], SBizzInfo[sb][sbEntranceY], SBizzInfo[sb][sbEntranceZ]+1,15.0,0);
    }
    }




    //-----------------------------------------------------------------------------------
    //------------------------------- VEHICLES -----------------------------------------
    //freizeitautos
    AddStaticVehicle(571,54.0,65.0,85.0,42.0,119.0,161.0,0,0,0,0,0,0); //kart
    return 1;


    //********************************Staatsfraktionen Autos******************************************************************************
    //LSPDVeh
    PolizeiVehs[0] = AddStaticVehicleEx(432,1600.89953613,-1700.48669434,5.71062469,90.00000000,-1,1,-1); //Rhino (LSPD)
    PolizeiVehs[1] = AddStaticVehicleEx(506,1601.13500977,-1696.30407715,5.71062469,90.00000000,-1,1,-1); //Police Car (LSPD)
    PolizeiVehs[2] = AddStaticVehicleEx(560,1601.17785645,-1692.10595703,5.71062469,90.00000000,-1,1,-1); //Police Car (LSPD)
    PolizeiVehs[3] = AddStaticVehicleEx(596,1601.17272949,-1688.34167480,5.71062469,90.00000000,-1,1,-1); //Police Car (LSPD)
    PolizeiVehs[4] = AddStaticVehicleEx(596,1601.21960449,-1684.21215820,5.71062469,90.00000000,-1,1,-1); //Police Car (LSPD)
    PolizeiVehs[5] = AddStaticVehicleEx(571,1595.33789062,-1710.26196289,6.27575159,0.00000000,-1,1,-1); //Police Ranger
    PolizeiVehs[6] = AddStaticVehicleEx(599,1591.48669434,-1710.18029785,6.27575159,0.00000000,-1,1,-1); //Police Ranger
    PolizeiVehs[7] = AddStaticVehicleEx(599,1587.68603516,-1710.06457520,6.27575159,0.00000000,-1,1,-1); //Police Ranger
    PolizeiVehs[8] = AddStaticVehicleEx(528,1558.51110840,-1710.00305176,6.07562494,0.00000000,-1,1,-1); //FBI Truck
    PolizeiVehs[10] = AddStaticVehicleEx(528,1562.95495605,-1710.02783203,6.07562494,0.00000000,-1,1,-1); //FBI Truck
    PolizeiVehs[11] = AddStaticVehicleEx(571,1570.28283691,-1709.88549805,6.13862514,0.00000000,-1,1,-1); //Enforcer
    PolizeiVehs[12] = AddStaticVehicleEx(427,1574.63000488,-1709.88647461,6.13862514,0.00000000,-1,1,-1); //Enforcer
    PolizeiVehs[14] = AddStaticVehicleEx(599,1583.43701172,-1709.97583008,6.27575159,0.00000000,-1,1,-1); //Police Ranger
    PolizeiVehs[15] = AddStaticVehicleEx(560,1538.78942871,-1645.71411133,6.21075153,180.00000000,-1,1,-1); //FBI Rancher
    PolizeiVehs[16] = AddStaticVehicleEx(490,1534.60656738,-1645.65954590,6.21075153,180.00000000,-1,1,-1); //FBI Rancher
    PolizeiVehs[17] = AddStaticVehicleEx(432,1530.59118652,-1645.65087891,6.21075153,180.00000000,-1,1,-1); //FBI Rancher
    PolizeiVehs[18] = AddStaticVehicleEx(522,1526.73315430,-1645.59289551,6.21075153,180.00000000,-1,1,-1); //FBI Rancher
    PolizeiVehs[19] = AddStaticVehicleEx(411,1544.24511719,-1684.37768555,5.69560003,90.00000000,-1,1,-1); //Sultan
    PolizeiVehs[20] = AddStaticVehicleEx(601,1544.39367676,-1680.41259766,5.69560003,90.00000000,-1,1,-1); //Sultan
    PolizeiVehs[21] = AddStaticVehicleEx(451,1544.47839355,-1676.29357910,5.69560003,90.00000000,-1,1,-1); //Sultan
    PolizeiVehs[22] = AddStaticVehicleEx(560,1544.55041504,-1672.26855469,5.69560003,90.00000000,-1,1,-1); //Sultan
    PolizeiVehs[23] = AddStaticVehicleEx(523,1587.62780762,-1680.05261230,5.55736876,270.00000000,86,86,-1); //HPV1000
    PolizeiVehs[24] = AddStaticVehicleEx(428,1587.65747070,-1678.38476562,5.55736876,270.00000000,86,86,-1); //HPV1000
    PolizeiVehs[25] = AddStaticVehicleEx(522,1587.61389160,-1676.62609863,5.55736876,270.00000000,86,86,-1); //HPV1000
    PolizeiVehs[26] = AddStaticVehicleEx(522,1587.63391113,-1674.93676758,5.55785704,270.00000000,86,86,-1); //HPV1000
    PolizeiVehs[27] = AddStaticVehicleEx(425,1564.79272461,-1655.70471191,28.66060638,90.00000000,-1,1,-1); //Maverick
    PolizeiVehs[28] = AddStaticVehicleEx(548,1564.01989746,-1694.91894531,28.66058731,90.00000000,-1,1,-1); //Maverick
    PolizeiVehs[29] = AddStaticVehicleEx(447,1549.63110352,-1708.03112793,28.49481010,90.00000000,-1,1,-1); //Seasparrow
    PolizeiVehs[30] = AddStaticVehicleEx(430,947.3892,-1994.1215,-0.4547,352.9428,0,1,-1); // Predators
    PolizeiVehs[31] = AddStaticVehicleEx(430,943.9156,-2013.5116,-0.0923,172.9194,0,1,-1); // Predators
    PolizeiVehs[32] = AddStaticVehicleEx(446,926.1312,-2010.9595,-0.5119,173.8733,0,1,-1); // Sqallo
    PolizeiVehs[33] = AddStaticVehicleEx(446,929.3665,-1990.3289,-0.5837,352.0886,0,1,-1); // Sqallo
    PolizeiVehs[34] = AddStaticVehicleEx(452,910.7324,-2008.9387,-0.6833,175.1667,0,1,-1); // Speeder
    PolizeiVehs[35] = AddStaticVehicleEx(452,913.9105,-1990.8756,-0.4459,352.3455,0,1,-1); // Speeder

    ist bei den frakautos

  • nur noch 3 warnings :) 2 hatte ich schon vorher


    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(6271) : warning 225: unreachable code
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(12375) : warning 202: number of arguments does not match definition
    C:\Users\Kevin\Desktop\GTA SERVER\German Next Era Life - v2.5\gamemodes\GNE.pwn(55162) : warning 225: unreachable code
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    Header size: 14648 bytes
    Code size: 2728664 bytes
    Data size: 27911584 bytes
    Stack/heap size: 32768 bytes; estimated max. usage: unknown, due to recursion
    Total requirements:30687664 bytes


    3 Warnings.




    AddStaticVehicle(571, 54.0000, 65.0000, 85.0000, 42.000,0,0,1); //kart


    6271
    if(gPlayerLogged[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_LIGHTRED, "** Du musst dich vorher einloggen oder dir einen Account erstellen! ***");
    Kick(playerid);
    return 1;


    if(gPlayerAccount[playerid] == 1) <------ die zeile macht das problem :)
    {
    ForceClassSelection(playerid);
    TogglePlayerSpectating(playerid, 0);
    }
    else if(gPlayerAccount[playerid] == 0)
    {
    ForceClassSelection(playerid);
    TogglePlayerSpectating(playerid, 0);
    }
    return 1;



    die 55162


    if (!IsACop(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Du bist kein Cop!");
    {
    SendClientMessage(playerid, COLOR_GREY, " * Es ist kein Polizist im Dienst, bitte versuche es später noch einmal");
    return 1;
    }
    new sendername[MAX_PLAYER_NAME]; <------- die zeile auch :)
    new string[256];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "[Leitstelle] %s hat einen Streifenwagen angefordert, Gib (/accept polizei) ein um den Auftrag anzunehmen.", sendername);
    {
    if(IsPlayerConnected(i))
    {

  • if(gPlayerLogged[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_LIGHTRED, "** Du musst dich vorher einloggen oder dir einen Account erstellen! ***");
    Kick(playerid);
    return 1;
    }//Hast hier wahrscheinlich ne Klammer vergessen
    if(gPlayerAccount[playerid] == 1) <------ die zeile macht das problem :)
    {
    ForceClassSelection(playerid);
    TogglePlayerSpectating(playerid, 0);
    }
    else if(gPlayerAccount[playerid] == 0)
    {
    ForceClassSelection(playerid);
    TogglePlayerSpectating(playerid, 0);
    }
    return 1;
    und
    new sendername[MAX_PLAYERS][MAX_PLAYER_NAME];