Beiträge von Sharpadox

    8/10


    • Ansich nicht schlecht die Fenster so hoch zu platzieren, jedoch sind die Wände größtenteils kahl und schaut irgendwie komisch aus.
    • Sonst noch bisschen mehr Deko schaut noch zu fad aus :S

    Ich hätte es ja anders gemacht, aber wie schon gesagt, ich mappe diese Map nicht weiter..
    Ich veröffentliche diese (fast) leere Haus, damit evtl. einige es benutzen und weitermappen können. :)


    Wegen der Wand: Find ich auch bisschen, aber hab keine bessere gefunden^^

    Wieso werden meine Cars und so nicht abgespeichert? Ich werde nichtmal in die Tabelle ingetragen oO


    Speichern

    Spoiler anzeigen
    stock SavePCars(playerid)
    {
    if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
    {
    if(GetPVarInt(playerid,"Eingeloggt") == 1)
    {
    mysql_SetString("PrivatCars", "Name", GetName(playerid), "Name", PlayerInfo[playerid][pName]);
    mysql_SetString("PrivatCars", "Autoname1", PrivatCar[playerid][1][CarName], "Name", PlayerInfo[playerid][pName]);
    mysql_SetString("PrivatCars", "Autoname2", PrivatCar[playerid][2][CarName], "Name", PlayerInfo[playerid][pName]);
    mysql_SetString("PrivatCars", "Autoname3", PrivatCar[playerid][3][CarName], "Name", PlayerInfo[playerid][pName]);
    mysql_SetString("PrivatCars", "Autoname4", PrivatCar[playerid][4][CarName], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("PrivatCars", "modelid1", PrivatCar[playerid][1][modelid], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("PrivatCars", "modelid2", PrivatCar[playerid][2][modelid], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("PrivatCars", "modelid3", PrivatCar[playerid][3][modelid], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("PrivatCars", "modelid4", PrivatCar[playerid][4][modelid], "Name", PlayerInfo[playerid][pName]);
    mysql_SetFloat("PrivatCars", "CarX1", PrivatCar[playerid][1][pcX], "Name", PlayerInfo[playerid][pName]);
    mysql_SetFloat("PrivatCars", "CarX2", PrivatCar[playerid][2][pcX], "Name", PlayerInfo[playerid][pName]);
    mysql_SetFloat("PrivatCars", "CarX3", PrivatCar[playerid][3][pcX], "Name", PlayerInfo[playerid][pName]);
    mysql_SetFloat("PrivatCars", "CarX4", PrivatCar[playerid][4][pcX], "Name", PlayerInfo[playerid][pName]);
    mysql_SetFloat("PrivatCars", "CarY1", PrivatCar[playerid][1][pcY], "Name", PlayerInfo[playerid][pName]);
    mysql_SetFloat("PrivatCars", "CarY2", PrivatCar[playerid][2][pcY], "Name", PlayerInfo[playerid][pName]);
    mysql_SetFloat("PrivatCars", "CarY3", PrivatCar[playerid][3][pcY], "Name", PlayerInfo[playerid][pName]);
    mysql_SetFloat("PrivatCars", "CarY4", PrivatCar[playerid][4][pcY], "Name", PlayerInfo[playerid][pName]);
    mysql_SetFloat("PrivatCars", "CarZ1", PrivatCar[playerid][1][pcZ], "Name", PlayerInfo[playerid][pName]);
    mysql_SetFloat("PrivatCars", "CarZ2", PrivatCar[playerid][2][pcZ], "Name", PlayerInfo[playerid][pName]);
    mysql_SetFloat("PrivatCars", "CarZ3", PrivatCar[playerid][3][pcZ], "Name", PlayerInfo[playerid][pName]);
    mysql_SetFloat("PrivatCars", "CarZ4", PrivatCar[playerid][4][pcZ], "Name", PlayerInfo[playerid][pName]);
    mysql_SetFloat("PrivatCars", "CarA1", PrivatCar[playerid][1][pcA], "Name", PlayerInfo[playerid][pName]);
    mysql_SetFloat("PrivatCars", "CarA2", PrivatCar[playerid][2][pcA], "Name", PlayerInfo[playerid][pName]);
    mysql_SetFloat("PrivatCars", "CarA3", PrivatCar[playerid][3][pcA], "Name", PlayerInfo[playerid][pName]);
    mysql_SetFloat("PrivatCars", "CarA4", PrivatCar[playerid][4][pcA], "Name", PlayerInfo[playerid][pName]);
    }
    }
    return 1;
    }


    Laden:

    Spoiler anzeigen
    stock LoadPCars(playerid)
    {
    if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
    {
    PrivatCar[playerid][][PlayerName] = mysql_GetString("accounts","Name","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][1][CarName] = mysql_GetString("accounts","Autoname1","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][2][CarName] = mysql_GetString("accounts","Autoname2","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][3][CarName] = mysql_GetString("accounts","Autoname3","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][4][CarName] = mysql_GetString("accounts","Autoname4","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][1][modelid] = mysql_GetInt("accounts","modelid1","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][2][modelid] = mysql_GetInt("accounts","modelid2","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][3][modelid] = mysql_GetInt("accounts","modelid3","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][4][modelid] = mysql_GetInt("accounts","modelid4","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][1][pcX] = mysql_GetFloat("accounts","CarX1","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][2][pcX] = mysql_GetFloat("accounts","CarX2","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][3][pcX] = mysql_GetFloat("accounts","CarX3","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][4][pcX] = mysql_GetFloat("accounts","CarX4","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][1][pcY] = mysql_GetFloat("accounts","CarY1","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][2][pcY] = mysql_GetFloat("accounts","CarY2","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][3][pcY] = mysql_GetFloat("accounts","CarY3","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][4][pcY] = mysql_GetFloat("accounts","CarY4","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][1][pcZ] = mysql_GetFloat("accounts","CarZ1","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][2][pcZ] = mysql_GetFloat("accounts","CarZ2","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][3][pcZ] = mysql_GetFloat("accounts","CarZ3","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][4][pcZ] = mysql_GetFloat("accounts","CarZ4","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][1][pcA] = mysql_GetFloat("accounts","CarA1","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][2][pcA] = mysql_GetFloat("accounts","CarA2","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][3][pcA] = mysql_GetFloat("accounts","CarA3","Name", PlayerInfo[playerid][pName]);
    PrivatCar[playerid][4][pcA] = mysql_GetFloat("accounts","CarA4","Name", PlayerInfo[playerid][pName]);
    }
    }


    Autokauf:

    Spoiler anzeigen
    case DIALOG_AUTOKAUF:
    {
    if(response)
    {
    for(new i=0; i<sizeof(SellCar); i++)
    {
    if(GetPlayerVehicleID(playerid)==SellCar[i][vehid])
    {
    if(PrivatCar[playerid][CarKey[playerid]][HaveKey] > 0)
    {
    Fehler(playerid,"Für diesen Schlüssel besitzt du bereits ein Fahrzeug. Benutze /carkey");
    return 1;
    }
    /*
    CarName[64],
    PlayerName[64],
    modelid,
    Float:pcX[4],
    Float:pcY[4],
    Float:pcZ[4],
    Float:pcA[4]*/
    new preis = SellCar[i][Preis];
    GivePlayerMoney(playerid,-preis);
    CreateVehicle(SellCar[i][modelid],553.5764,-1263.9396,16.9468,307.2815,1,1,60000);
    PrivatCar[playerid][CarKey[playerid]][CarName] = SellCar[i][CarName];
    PrivatCar[playerid][CarKey[playerid]][PlayerName] = GetName(playerid);
    PrivatCar[playerid][CarKey[playerid]][modelid] = SellCar[playerid][modelid];
    PrivatCar[playerid][CarKey[playerid]][pcX] = 553.5764;
    PrivatCar[playerid][CarKey[playerid]][pcY] = -1263.9396;
    PrivatCar[playerid][CarKey[playerid]][pcZ] = 16.9468;
    PrivatCar[playerid][CarKey[playerid]][pcA] = 307.2815;
    PrivatCar[playerid][CarKey[playerid]][HaveKey] = 1;
    SavePCars(playerid);
    RemovePlayerFromVehicle(playerid);
    formatEx(playerid,Gelb,"Du hast dir erfolgreich für %i$ einen %s gekauft",preis,SellCar[i][CarName]);
    return 1;
    }
    }
    }
    else
    {
    SendClientMessage(playerid,Grau,"Du hast den Kauf abgebrochen!");
    RemovePlayerFromVehicle(playerid);
    return 1;
    }
    return 1;
    }

    Also es sieht so aus::


    Spoiler anzeigen
    PrivatCar[playerid][CarKey[playerid]][pcX[CarKey[playerid]]] = 553.5764; //Betroffene Zeile
    PrivatCar[playerid][CarKey[playerid]][pcY[CarKey[playerid]]] = -1263.9396;
    PrivatCar[playerid][CarKey[playerid]][pcZ[CarKey[playerid]]] = 16.9468;
    PrivatCar[playerid][CarKey[playerid]][pcA[CarKey[playerid]]] = 307.2815;


    Errors:

    Spoiler anzeigen
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 028: invalid subscript (not an array or too many subscripts): "pcX"
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : warning 215: expression has no effect
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 001: expected token: ";", but found "]"
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 029: invalid expression, assumed zero
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : fatal error 107: too many error messages on one line

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

    Spoiler anzeigen
    4 Errors.

    Falsch .. MAX_PLAYER_NAME ^^


    Aber trotzdem danke :P


    Immernoch 4 Erros


    Spoiler anzeigen
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 028: invalid subscript (not an array or too many subscripts): "pcX"
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : warning 215: expression has no effect
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 001: expected token: ";", but found "]"
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 029: invalid expression, assumed zero
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : fatal error 107: too many error messages on one line

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

    Spoiler anzeigen
    4 Errors.

    Also mein Code sieht jetzt so aus:


    Spoiler anzeigen
    PrivatCar[playerid][CarKey[playerid]][CarName] = SellCar[i][CarName];
    PrivatCar[playerid][CarKey[playerid]][PlayerName] = GetName(playerid);
    PrivatCar[playerid][CarKey[playerid]][modelid] = SellCar[playerid][modelid];
    PrivatCar[playerid][CarKey[playerid]][pcX[CarKey[playerid]] = 553.5764;
    PrivatCar[playerid][CarKey[playerid]][pcY[CarKey[playerid]] = -1263.9396;
    PrivatCar[playerid][CarKey[playerid]][pcZ[CarKey[playerid]] = 16.9468;
    PrivatCar[playerid][CarKey[playerid]][pcA[CarKey[playerid]] = 307.2815;


    Errors nurnoch 5:

    Spoiler anzeigen
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3436) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 028: invalid subscript (not an array or too many subscripts): "pcX"
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : warning 215: expression has no effect
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 001: expected token: ";", but found "]"
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 029: invalid expression, assumed zero
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : fatal error 107: too many error messages on one line

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

    Spoiler anzeigen
    5 Errors.


    Mein Enum oO:

    Spoiler anzeigen
    #define MAX_KEYS 5
    enum PrivatCars
    {
    CarName[64],
    PlayerName[64],
    modelid,
    Float:pcX,
    Float:pcY,
    Float:pcZ,
    Float:pcA
    }
    new PrivatCar[MAX_PLAYERS][MAX_KEYS][PrivatCars];

    Jetzt habe ich Warnings weg, aber Errors sind immernoch da -.-


    Spoiler anzeigen
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3435) : error 091: ambiguous constant; tag override is required (symbol "CarName")
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3435) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3436) : warning 213: tag mismatch
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3436) : error 032: array index out of bounds (variable "PrivatCar")
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3436) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3437) : error 091: ambiguous constant; tag override is required (symbol "modelid")
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3437) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 028: invalid subscript (not an array or too many subscripts): "pcX"
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : warning 215: expression has no effect
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 001: expected token: ";", but found "]"
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 029: invalid expression, assumed zero
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : fatal error 107: too many error messages on one line

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

    Spoiler anzeigen
    10 Errors.

    Heyho ihr Brotfische,


    Ich habe da ein Problem; Ich versuche PrivatCars abzuspeichern nach dem Autokauf aber bekomme
    10 Errors, was soll ich tun?


    Code:

    Spoiler anzeigen
    PrivatCar[playerid][CarName] = SellCar[i][CarName];
    PrivatCar[playerid][PlayerName] = GetName(playerid);
    PrivatCar[playerid][modelid] = SellCar[playerid][modelid];
    PrivatCar[playerid][CarKey[playerid]][Float:pcX[CarKey[playerid]] = 553.5764;
    PrivatCar[playerid][CarKey[playerid]][Float:pcY[CarKey[playerid]] = -1263.9396;
    PrivatCar[playerid][CarKey[playerid]][Float:pcZ[CarKey[playerid]] = 16.9468;
    PrivatCar[playerid][CarKey[playerid]][Float:pcA[CarKey[playerid]] = 307.2815;


    Errors:

    Spoiler anzeigen
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3435) : error 091: ambiguous constant; tag override is required (symbol "CarName")
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3435) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3436) : warning 213: tag mismatch
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3436) : error 032: array index out of bounds (variable "PrivatCar")
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3436) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3437) : error 091: ambiguous constant; tag override is required (symbol "modelid")
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3437) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 028: invalid subscript (not an array or too many subscripts): "pcX"
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : warning 215: expression has no effect
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 001: expected token: ";", but found "]"
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 029: invalid expression, assumed zero
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : fatal error 107: too many error messages on one line

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

    Spoiler anzeigen
    10 Errors.