MySQL Errorid 1054

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • MySQL Errorid 1054

    Tag,

    habe bereits die SuFu und auch Google befragt, bekomme aber keine Lösung.

    Ich habe vor, ein Dynamisches System zu erstellen. Dazu sollen Koordinaten gespeichert werden.

    Der Code sie wie folgt aus:

    [pwn]mysql_format(mycon,query,sizeof(query),"INSERT INTO `koords` (`X`,`Y`,`Z`,`A`) VALUES (`%f`,`%f`,`%f`,`%f`)",posx,posy,posz,posa);
    mysql_tquery(mycon,query,"","");[/pwn]

    [pwn]Errorid 1054
    Unknown column ´1958.378296´ in ´field list´
    (null)
    INSERT INTO `koords` (`X`,`Y`,`Z`,`A`) VALUES (`1958.378296`,`1343.157227`,`15.374607`,`269.142487`)[/pwn]

    Meine MySQL Tabelle sieht wie folgt aus
    [pwn]ID Type int Length 11 Decimals 0 Auto Increment
    X Typ Float Lenght 16 Decimals 6 (für Y, Z und A das selbe)[/pwn]
  • danke dir erneut. So nun mein letzer Fehler für heute:

    Beim Starten des Servers sollen auf den Koords ATMs entstehen. Diese werden aber nicht geladen :/

    [pwn]for(new i = 0; i < MAX_ATMS; i++)
    {
    mysql_format(mycon,query,sizeof(query),"SELECT * FROM `atm` WHERE `ID` = '%i'",i);
    mysql_tquery(mycon,query,"","");
    new rows = mysql_num_rows();
    if(rows == 0) continue;
    AtmInfo[AtmX] = cache_get_field_content_float(0,"X");
    AtmInfo[i][AtmY] = cache_get_field_content_float(0,"Y");
    AtmInfo[i][AtmZ] = cache_get_field_content_float(0,"Z");
    AtmInfo[i][AtmA] = cache_get_field_content_float(0,"A");
    AtmInfo[i][erstellt] = true;
    AtmInfo[i][atmobjekt] = CreateObject(2942,AtmInfo[i][AtmX],AtmInfo[i][AtmY],AtmInfo[i][AtmZ]-0.5,0,0,AtmInfo[i][AtmA]);
    }[/pwn]