MYSQL Problem

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
  • Habe hier ein Befehl der nicht richtig funktioniert


    Führe ich ihn manuell aus bekomme ich folgendes (also per DB direkt)


    #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'alter='18' WHERE username='Stormi25'' at line 1


    so siehts im Script aus


    format(string,sizeof(string),"UPDATE user SET alter='%i' WHERE username='%s'",sInfo[pID][alter],SpielerName(pID));


    Jeffry :D

  • MYSQL LOG
    [21:45:36] [WARNING] CMySQLResult::GetRowDataByName - field not found ("motorrschein")
    [21:45:36] [ERROR] cache_get_field_content_int - invalid datatype
    [21:45:36] [WARNING] CMySQLResult::GetRowDataByName - field not found ("deaths")
    [21:45:36] [ERROR] cache_get_field_content_int - invalid datatype
    [21:45:36] [WARNING] CMySQLResult::GetRowDataByName - field not found ("kills")
    [21:45:36] [ERROR] cache_get_field_content_int - invalid datatype
    [21:45:36] [WARNING] CMySQLResult::GetRowDataByName - field not found ("u_warns")
    [21:45:36] [ERROR] cache_get_field_content_int - invalid datatype
    [21:45:36] [WARNING] CMySQLResult::GetRowDataByName - field not found ("f_warns")
    [21:45:36] [ERROR] cache_get_field_content_int - invalid datatype
    [21:45:36] [WARNING] CMySQLResult::GetRowDataByName - field not found ("fmoneyin")
    [21:45:36] [ERROR] cache_get_field_content_int - invalid datatype
    [21:45:36] [WARNING] CMySQLResult::GetRowDataByName - field not found ("fmoneyout")
    [21:45:36] [ERROR] cache_get_field_content_int - invalid datatype
    [21:45:36] [WARNING] CMySQLResult::GetRowDataByName - field not found ("bankguthaben")
    [21:45:36] [ERROR] cache_get_field_content_int - invalid datatype





    Das ist alles was im Log steht Jeffry

  • Jeffry


    Hier
    if(dialogid == DIALOG_AGE_CHANGE)
    {
    if(response)
    {
    //
    new string[256],pID;
    pID = GetPVarInt(playerid,"changeID");

    new input = strval(inputtext);
    new length = strlen(inputtext);
    printf("lenght = %i",length);
    if(length < 3) {

    format(string,sizeof(string),"Du hast das Alter von %s zu %i geändert",SpielerName(pID),input);
    SendClientMessage(playerid,CL_GREEEN,string);
    sInfo[pID][alter] = input;
    format(string,sizeof(string),"%s hat dein Alter aktualisiert; Neues Alter:%i",SpielerName(playerid),sInfo[pID][alter]);
    SendClientMessage(pID,CL_GREEEN,string);
    sInfo[pID][alter] = inputtext[256];
    format(string,sizeof(string),"UPDATE user SET `alter`='%i' WHERE `username`='%s'",sInfo[pID][alter],SpielerName(pID));
    mysql_function_query(dbhandle,string,false,"","");
    printf("string = %s",string);
    return 1;
    }
    else
    {
    format(string,sizeof(string),"Gib bitte das neue Alter von %s, Playerid %i ein! MAX 2 stellig!",SpielerName(pID),pID);
    ShowPlayerDialog(playerid,DIALOG_AGE_CHANGE,DIALOG_STYLE_INPUT,"Alterswechsel",string,"OK","Abbruch");
    }


    }
    else
    {
    printf("alterchange return 1");
    return 1;
    }
    }


    kann mir da denn keiner helfen?

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen