26 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, ich habe eigentlich nichts an meinem Script geändert und habe nun 26 Errors 8|


    PAAAAAASTEEEEBIN


    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(203) : error 017: undefined symbol "LoadDealershipVehicles"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(206) : error 017: undefined symbol "VehicleConnect"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(459) : error 017: undefined symbol "SaveDealershipVehicles"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(463) : error 017: undefined symbol "VehicleDisconnect"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(487) : error 017: undefined symbol "VehicleConnect"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(497) : error 017: undefined symbol "DB_Escape"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(572) : error 017: undefined symbol "VehicleDisconnect"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(581 -- 585) : error 017: undefined symbol "DB_Escape"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(601) : error 017: undefined symbol "teamlevelload"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(636) : error 017: undefined symbol "sscanf"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(642) : error 017: undefined symbol "CreateDealershipVehicle"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(651) : error 017: undefined symbol "SaveDealershipVehicles"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(700) : error 017: undefined symbol "sscanf"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(705) : error 017: undefined symbol "DeleteDealershipVehicle"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(707) : error 017: undefined symbol "GetVehicleNameByModel"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(709) : error 017: undefined symbol "SaveDealershipVehicles"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(703) : warning 204: symbol is assigned a value that is never used: "iModel"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(719) : error 017: undefined symbol "GetPlayerVehicleAmount"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(721) : error 017: undefined symbol "GetPlayerVehicleSlot"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(722) : error 017: undefined symbol "ParkVehicle"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(742) : error 017: undefined symbol "GetPlayerVehicleAmount"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(753) : error 017: undefined symbol "GetVehicleNameByModel"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(754) : error 017: undefined symbol "GetVehicleNameByModel"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(789) : error 017: undefined symbol "GetPlayerVehicleAmount"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(801) : error 017: undefined symbol "GetVehicleNameByModel"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(802) : error 017: undefined symbol "GetVehicleNameByModel"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(814) : error 017: undefined symbol "GetPlayerVehicleAmount"


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    26 Errors.

  • Zitat

    Alle Fehler!


    Wie darf man dich denn verstehen ? :)


    Wenn es kein Klammerfehler ist, dann siehst du doch was da falsch gelaufen ist.
    " undefined symbol" -> Undefiniertes Symbol (Funktion etc ist nicht vorhanden)


    Trotzdem würde ich dich bitten nach einem Klammerfehler zu suchen.


    mfg :thumbup:

  • Ich habe mal die stock LoadDealershipVehicles definiert....


    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(205) : error 029: invalid expression, assumed zero
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(205) : error 001: expected token: ")", but found ";"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(205 -- 206) : warning 215: expression has no effect
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(206) : error 001: expected token: ";", but found "for"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(206) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.


    LoadDealershipVehicles();
    foreach(Player, i)
    {
    VehicleConnect(i);
    }
    #define LoadDealershipVehicles

  • Ja so wird die aufgerufen ;)


    So sieht die Stock aus ^^


    stock LoadDealershipVehicles()
    {
    new DBResult:result;
    new query[128], field[64], string[256];
    for (new i = 1; i < MAX_VEHICLES; i += 1)
    {
    format(query, sizeof(query), "SELECT * FROM `DEALERCARS` WHERE vID = '%d'", i);
    result = db_query(DealerVehicleDatabase, query);
    if (db_num_rows(result))
    {
    new model, Float:x, Float:y, Float:z, Float:rot, forsale, price, vehicleid;
    db_get_field_assoc(result, "vModel", field, sizeof(field)); model = strval(field);
    db_get_field_assoc(result, "vX", field, sizeof(field)); x = strval(field);
    db_get_field_assoc(result, "vY", field, sizeof(field)); y = strval(field);
    db_get_field_assoc(result, "vZ", field, sizeof(field)); z = strval(field);
    db_get_field_assoc(result, "vRot", field, sizeof(field)); rot = strval(field);
    db_get_field_assoc(result, "vForSale", field, sizeof(field)); forsale = strval(field);
    db_get_field_assoc(result, "vPrice", field, sizeof(field)); price = strval(field);
    vehicleid = CreateVehicle(model, x, y, z, rot, 1, 1, 5);


    DealershipVehicles[vehicleid][vModel] = model;
    DealershipVehicles[vehicleid][vX] = x;
    DealershipVehicles[vehicleid][vY] = y;
    DealershipVehicles[vehicleid][vZ] = z;
    DealershipVehicles[vehicleid][vRot] = rot;
    DealershipVehicles[vehicleid][vForSale] = forsale;
    DealershipVehicles[vehicleid][vPrice] = price;
    DealershipVehicles[vehicleid][vID] = vehicleid;
    format(string, sizeof(string), "This {FFFFFF}%s {F5DEB3}is for sale.\nThe cost of this vehicle is {FFFFFF}$%d.\n{F5DEB3}For more information, enter the vehicle.", GetVehicleName(vehicleid), price);
    DealershipVehicles[vehicleid][vLabel] = Create3DTextLabel(string, YELLOW2, x, y, z, 10.0, 0);
    DealershipVehicles[vehicleid][vSQL_ID] = dealershipCars + 1;
    dealershipCars += 1;
    }
    db_free_result(result);
    }
    return 1;
    }

  • Ja dann kriege ich wieder 26 Errors


    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(205) : error 017: undefined symbol "LoadDealershipVehicles"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(208) : error 017: undefined symbol "VehicleConnect"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(461) : error 017: undefined symbol "SaveDealershipVehicles"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(465) : error 017: undefined symbol "VehicleDisconnect"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(489) : error 017: undefined symbol "VehicleConnect"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(499) : error 017: undefined symbol "DB_Escape"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(574) : error 017: undefined symbol "VehicleDisconnect"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(583 -- 587) : error 017: undefined symbol "DB_Escape"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(603) : error 017: undefined symbol "teamlevelload"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(638) : error 017: undefined symbol "sscanf"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(644) : error 017: undefined symbol "CreateDealershipVehicle"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(653) : error 017: undefined symbol "SaveDealershipVehicles"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(702) : error 017: undefined symbol "sscanf"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(707) : error 017: undefined symbol "DeleteDealershipVehicle"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(709) : error 017: undefined symbol "GetVehicleNameByModel"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(711) : error 017: undefined symbol "SaveDealershipVehicles"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(705) : warning 204: symbol is assigned a value that is never used: "iModel"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(721) : error 017: undefined symbol "GetPlayerVehicleAmount"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(723) : error 017: undefined symbol "GetPlayerVehicleSlot"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(724) : error 017: undefined symbol "ParkVehicle"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(744) : error 017: undefined symbol "GetPlayerVehicleAmount"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(754) : error 017: undefined symbol "GetVehicleNameByModel"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(755) : error 017: undefined symbol "GetVehicleNameByModel"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(790) : error 017: undefined symbol "GetPlayerVehicleAmount"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(802) : error 017: undefined symbol "GetVehicleNameByModel"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(803) : error 017: undefined symbol "GetVehicleNameByModel"
    C:\Users\Yannik\Desktop\samp037_svr_R1_win32\gamemodes\SQLite.pwn(815) : error 017: undefined symbol "GetPlayerVehicleAmount"


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    26 Errors.