String aus Datenbank auslesen, klappt nicht...

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 liebe User,


    ich habe mal wieder ein Problem und weiß nicht weiter. Der Titel sagt schon alles. Gespeichert wird der String in der Datenbank, aber ausgelesen nicht.



    Code:
    cache_get_field_content(0,"vname",sInfo[playerid][vname],dbhandle);





    Mit freundlichen Grüßen,
    DexterA1

  • @Mr.Reese:


    Danke für die schnelle Rückmeldung, hier das Enum:


    Spoiler anzeigen
    enum playerInfo{
    eingeloggt,
    level,
    pid,
    adminlevel,
    fraktion,
    skin,
    fskin,
    dienst,
    aduty,
    nroller,
    cuffed,
    registrierung,
    banned,
    supcar,
    realchat,
    tooc,
    bigear,
    muted,
    gun1,
    gun2,
    gun3,
    gun4,
    gun5,
    gun6,
    guna1,
    guna2,
    guna3,
    guna4,
    guna5,
    guna6,
    pwarn,
    crimes,
    friedhof,
    snow,
    perso,
    geschlecht,
    gbdatum,
    bmoney,
    AmUmkleiden,
    AmUmkleidenF,
    rang,
    spawnchange,
    cars,
    paytime,
    afk,
    zsearch,
    visum,
    premium,
    papagei,
    vname[32],
    vleben,
    vftime
    }


    Mit freundlichen Grüßen,
    DexterA1

  • Geht nicht, benutze das Plugin. Glaube es geht nur LOG_ERROR und LOG_WARNING.



    Mit freundlichen Grüßen,
    DexterA1



    EDIT: Jeffrey:


    Hab mal Error, Warning und Debug einzeln gelogt, aber nur bei Debug kam was in der mysql_log.


    Spoiler anzeigen
    [21:06:00] [DEBUG] mysql_connect - host: "127.0.0.1", user: "root", database: "mcd", password: "****", port: 3306, autoreconnect: true
    [21:06:00] [DEBUG] CMySQLHandle::Create - creating new connection..
    [21:06:00] [DEBUG] CMySQLHandle::CMySQLHandle - constructor called
    [21:06:00] [DEBUG] CMySQLHandle::Create - connection created with ID = 1
    [21:06:00] [DEBUG] CMySQLConnection::Connect - connection was successful
    [21:06:00] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been enabled
    [21:06:00] [DEBUG] CMySQLConnection::Connect - connection was successful
    [21:06:00] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been enabled
    [21:06:00] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM haus", callback: "OnHausesLoad", format: "(null)"
    [21:06:00] [DEBUG] CMySQLQuery::CMySQLQuery() - constructor called
    [21:06:00] [DEBUG] mysql_tquery - scheduling query "SELECT * FROM haus"..
    [21:06:00] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM frak_autos", callback: "OnFrakCarsLoad", format: "(null)"
    [21:06:00] [DEBUG] CMySQLQuery::CMySQLQuery() - constructor called
    [21:06:00] [DEBUG] mysql_tquery - scheduling query "SELECT * FROM frak_autos"..
    [21:06:00] [DEBUG] CMySQLQuery::Execute[OnHausesLoad()] - starting query execution
    [21:06:00] [DEBUG] CMySQLQuery::Execute[OnHausesLoad()] - query was successful
    [21:06:00] [DEBUG] CMySQLResult::CMySQLResult() - constructor called
    [21:06:00] [DEBUG] CMySQLQuery::Execute[OnHausesLoad()] - data being passed to ProcessCallbacks()
    [21:06:00] [DEBUG] CMySQLQuery::Execute[OnFrakCarsLoad()] - starting query execution
    [21:06:00] [DEBUG] CMySQLQuery::Execute[OnFrakCarsLoad()] - query was successful
    [21:06:00] [DEBUG] CMySQLResult::CMySQLResult() - constructor called
    [21:06:00] [DEBUG] CMySQLQuery::Execute[OnFrakCarsLoad()] - data being passed to ProcessCallbacks()
    [21:06:00] [DEBUG] Calling callback "OnHausesLoad"..
    [21:06:00] [DEBUG] cache_get_data - connection: 1
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 0, field_name: "h_x", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "h_x", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 0, field_name: "h_y", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "h_y", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 0, field_name: "h_z", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "h_z", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 0, field_name: "ih_x", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "ih_x", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 0, field_name: "ih_y", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "ih_y", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 0, field_name: "ih_z", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "ih_z", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "h_interior", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "h_interior", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content - row: 0, field_name: "besitzer", connection: 1, max_len: 24
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "besitzer", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "id", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "id", data: "1"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "h_preis", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "h_preis", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 1, field_name: "h_x", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "h_x", data: "1497.17"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 1, field_name: "h_y", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "h_y", data: "-687.893"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 1, field_name: "h_z", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "h_z", data: "95.5633"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 1, field_name: "ih_x", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "ih_x", data: "225.68"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 1, field_name: "ih_y", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "ih_y", data: "1021.45"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 1, field_name: "ih_z", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "ih_z", data: "1084.02"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 1, field_name: "h_interior", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "h_interior", data: "7"
    [21:06:00] [DEBUG] cache_get_field_content - row: 1, field_name: "besitzer", connection: 1, max_len: 24
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "besitzer", data: "[MCD]Mr.Finch"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 1, field_name: "id", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "id", data: "9"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 1, field_name: "h_preis", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "h_preis", data: "1"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 2, field_name: "h_x", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "h_x", data: "2145.21"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 2, field_name: "h_y", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "h_y", data: "-1084.65"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 2, field_name: "h_z", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "h_z", data: "25.0371"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 2, field_name: "ih_x", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "ih_x", data: "225.68"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 2, field_name: "ih_y", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "ih_y", data: "1021.45"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 2, field_name: "ih_z", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "ih_z", data: "1084.02"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 2, field_name: "h_interior", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "h_interior", data: "7"
    [21:06:00] [DEBUG] cache_get_field_content - row: 2, field_name: "besitzer", connection: 1, max_len: 24
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "besitzer", data: "Riddick"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 2, field_name: "id", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "id", data: "10"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 2, field_name: "h_preis", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "h_preis", data: "5000"
    [21:06:00] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
    [21:06:00] [DEBUG] CMySQLQuery::~CMySQLQuery() - deconstructor called
    [21:06:00] [DEBUG] Calling callback "OnFrakCarsLoad"..
    [21:06:00] [DEBUG] cache_get_data - connection: 1
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "model", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "model", data: "420"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "frakid", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "frakid", data: "1"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 0, field_name: "x", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "x", data: "1546.77"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 0, field_name: "y", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "y", data: "-1026.36"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 0, field_name: "z", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "z", data: "23.6859"
    [21:06:00] [DEBUG] cache_get_field_content_float - row: 0, field_name: "r", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "r", data: "163.958"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "color1", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "color1", data: "3"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "color2", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "color2", data: "1"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "paintjob", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "paintjob", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning1", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning1", data: "1003"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning2", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning2", data: "1004"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning3", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning3", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning4", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning4", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning5", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning5", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning6", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning6", data: "1010"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning7", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning7", data: "1019"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning8", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning8", data: "1096"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning9", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning9", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning10", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning10", data: "1087"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning11", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning11", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning12", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning12", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning13", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning13", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "tuning14", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "tuning14", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "locked", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "locked", data: "0"
    [21:06:00] [DEBUG] cache_get_field_content_int - row: 0, field_name: "id", connection: 1
    [21:06:00] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "id", data: "0"
    [21:06:00] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
    [21:06:00] [DEBUG] CMySQLQuery::~CMySQLQuery() - deconstructor called

    Einmal editiert, zuletzt von DexterA1 ()

  • Jeffrey:


    Spoiler anzeigen
    public OnPasswordResponse(playerid)
    {
    new num_fields,num_rows;
    cache_get_data(num_rows,num_fields,dbhandle);
    if(num_rows==1)
    {
    //Passwort richtig
    if(sInfo[playerid][registrierung]==1)
    {
    new s[128];
    new loginname[MAX_PLAYER_NAME];
    GetPlayerName(playerid,loginname,MAX_PLAYER_NAME);
    format(s,sizeof(s),"{F50000}SERVER: {FFFFFF}Willkommen %s",loginname);
    SendClientMessage(playerid,Rot,s);
    GameTextForPlayer(playerid, "~b~Willkommen", 5000, 1);
    sInfo[playerid][eingeloggt] = 1;
    sInfo[playerid][level] = 0;
    SetPlayerScore(playerid,sInfo[playerid][level]);
    sInfo[playerid][pid] = cache_get_field_content_int(0,"id",dbhandle);
    SetPlayerMoney(playerid,15000);
    sInfo[playerid][adminlevel] = 0;
    sInfo[playerid][fraktion] = 0;
    sInfo[playerid][aduty] = 0;
    sInfo[playerid][dienst] = 0;
    sInfo[playerid][cuffed] = 0;
    sInfo[playerid][registrierung] = 0;
    sInfo[playerid][banned] = 0;
    sInfo[playerid][supcar] = 0;
    sInfo[playerid][realchat] = 1;
    sInfo[playerid][tooc]= 0;
    sInfo[playerid][bigear]= 0;
    sInfo[playerid][muted]= 0;
    sInfo[playerid][gun1] = 0;
    sInfo[playerid][guna1] = 0;
    sInfo[playerid][gun2] = 0;
    sInfo[playerid][guna2] = 0;
    sInfo[playerid][gun3] = 0;
    sInfo[playerid][guna3] = 0;
    sInfo[playerid][gun4] = 0;
    sInfo[playerid][guna4] = 0;
    sInfo[playerid][gun5] = 0;
    sInfo[playerid][guna5] = 0;
    sInfo[playerid][gun6] = 0;
    sInfo[playerid][guna6] = 0;
    sInfo[playerid][pwarn] = 0;
    sInfo[playerid][crimes] = 0;
    sInfo[playerid][friedhof] = 0;
    sInfo[playerid][perso] = 0;
    sInfo[playerid][bmoney] = 5000;
    sInfo[playerid][fskin] = 0;
    sInfo[playerid][rang] = 0;
    sInfo[playerid][spawnchange] = 0;
    sInfo[playerid][cars] = 0;
    sInfo[playerid][paytime] = 0;
    sInfo[playerid][premium] = 0;
    sInfo[playerid][papagei] = 0;
    APerso[playerid] = 0;
    loadPlayerCars(playerid);
    SendClientMessage(playerid,Gelb,"Du bekommst ein Startgeld von 20000$ (15000 Bar + 5000 Bank).");
    SetSpawnInfo(playerid, 0, sInfo[playerid][skin], 1788.4104,-1297.7722,82.1459, 269.15, 0, 0, 0, 0, 0, 0);
    SpawnPlayer(playerid);
    return 1;
    }
    else
    {
    new s[128];
    new loginname[MAX_PLAYER_NAME];
    GetPlayerName(playerid,loginname,MAX_PLAYER_NAME);
    format(s,sizeof(s),"{F50000}SERVER: {FFFFFF}Willkommen %s",loginname);
    SendClientMessage(playerid,Rot,s);
    GameTextForPlayer(playerid, "~b~Willkommen", 5000, 1);
    sInfo[playerid][eingeloggt] = 1;
    sInfo[playerid][level] = cache_get_field_content_int(0,"level",dbhandle);
    SetPlayerScore(playerid,sInfo[playerid][level]);
    sInfo[playerid][pid] = cache_get_field_content_int(0,"id",dbhandle);
    SetPlayerMoney(playerid,cache_get_field_content_int(0,"money",dbhandle));
    sInfo[playerid][adminlevel] = cache_get_field_content_int(0,"adminlevel",dbhandle);
    sInfo[playerid][fraktion] = cache_get_field_content_int(0,"fraktion",dbhandle);
    sInfo[playerid][skin] = cache_get_field_content_int(0,"skin",dbhandle);
    sInfo[playerid][aduty] = 0;
    sInfo[playerid][dienst] = 0;
    sInfo[playerid][cuffed] = 0;
    sInfo[playerid][registrierung]=0;
    sInfo[playerid][banned] = cache_get_field_content_int(0,"banned",dbhandle);
    sInfo[playerid][supcar] = 0;
    sInfo[playerid][realchat] = 1;
    sInfo[playerid][tooc]=0;
    sInfo[playerid][bigear]=0;
    sInfo[playerid][muted]=0;
    sInfo[playerid][gun1] = cache_get_field_content_int(0,"gun1",dbhandle);
    sInfo[playerid][guna1] = cache_get_field_content_int(0,"guna1",dbhandle);
    sInfo[playerid][gun2] = cache_get_field_content_int(0,"gun2",dbhandle);
    sInfo[playerid][guna2] = cache_get_field_content_int(0,"guna2",dbhandle);
    sInfo[playerid][gun3] = cache_get_field_content_int(0,"gun3",dbhandle);
    sInfo[playerid][guna3] = cache_get_field_content_int(0,"guna3",dbhandle);
    sInfo[playerid][gun4] = cache_get_field_content_int(0,"gun4",dbhandle);
    sInfo[playerid][guna4] = cache_get_field_content_int(0,"guna4",dbhandle);
    sInfo[playerid][gun5] = cache_get_field_content_int(0,"gun5",dbhandle);
    sInfo[playerid][guna5] = cache_get_field_content_int(0,"guna5",dbhandle);
    sInfo[playerid][gun6] = cache_get_field_content_int(0,"gun6",dbhandle);
    sInfo[playerid][guna6] = cache_get_field_content_int(0,"guna6",dbhandle);
    sInfo[playerid][pwarn] = cache_get_field_content_int(0,"pwarn",dbhandle);
    sInfo[playerid][crimes] = cache_get_field_content_int(0,"crimes",dbhandle);
    sInfo[playerid][friedhof] = 0;
    sInfo[playerid][perso] = cache_get_field_content_int(0,"perso",dbhandle);
    sInfo[playerid][geschlecht] = cache_get_field_content_int(0,"geschlecht",dbhandle);
    sInfo[playerid][gbdatum] = cache_get_field_content_int(0,"gbdatum",dbhandle);
    sInfo[playerid][bmoney] = cache_get_field_content_int(0,"bmoney",dbhandle);
    sInfo[playerid][fskin] = cache_get_field_content_int(0,"fskin",dbhandle);
    sInfo[playerid][rang] = cache_get_field_content_int(0,"rang",dbhandle);
    sInfo[playerid][spawnchange] = cache_get_field_content_int(0,"spawnchange",dbhandle);
    sInfo[playerid][cars] = cache_get_field_content_int(0,"cars",dbhandle);
    sInfo[playerid][paytime] = cache_get_field_content_int(0,"paytime",dbhandle);
    sInfo[playerid][premium] = cache_get_field_content_int(0,"premium",dbhandle);
    sInfo[playerid][papagei] = cache_get_field_content_int(0,"papagei",dbhandle);
    cache_get_field_content(0,"vname",sInfo[playerid][vname],dbhandle);
    printf("%s",sInfo[playerid][vname]);
    APerso[playerid] = 0;
    loadPlayerCars(playerid);
    SetSpawnInfo(playerid, 0, sInfo[playerid][skin], 1788.4104,-1297.7722,82.1459, 269.15, 0, 0, 0, 0, 0, 0);
    SpawnPlayer(playerid);
    return 1;
    }

    }
    else
    {
    //Passwort falsch
    SendClientMessage(playerid,Rot,"Das eingegebende Passwort ist nicht korrekt!");
    new s[256];
    new loginname[MAX_PLAYER_NAME];
    GetPlayerName(playerid,loginname,MAX_PLAYER_NAME);
    format(s,sizeof(s),"{00F300}Dein Name wurde gefunden, bitte logg dich ein!\n\n{FF6E00}Benutzername: {FFFFFF}%s\n\nBitte gib dein Passwort ein:",loginname);
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Willkommen auf My City Dream",s,"Einloggen","Verlassen");
    }
    return 1;
    }



    Mit freundlichen Grüßen,
    DexterA1

  • Jeffry:


    Habe ich gemacht, hier:


    Spoiler anzeigen
    [00:10:18] [DEBUG] cache_get_field_content - row: 0, field_name: "vname", connection: 1, max_len: 1
    [00:10:18] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "vname", data: "Willi



    Mit freundlichen Grüßen,
    DexterA1



    EDIT: Habe es mir gerade selbst mal angesehen und sah das er Willi ausgelesen hat, aber warum printet er mir dann "Willi" nicht?


    EDIT: Hat sich erledigt. :D

    2 Mal editiert, zuletzt von DexterA1 ()