Syntax fehler aber wo ?

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 in der mysql_debug gefunden das ich ein synatx fehler habe: genau hier:
    format(string,sizeof(string),"INSERT INTO `users` (`pName`,`pPasswort`,`pAge`,`pSex`,`pEmail`,`pBanned`,`pSkin`,`pPerso`,`pTut`,`pAdmin`,`pLevel`,`pMoney`,`pAutoLic`,`pBikeLic`,`pFlugLic`) VALUES ('%s','%s','%d','%d','%s','%d','%d','%d','%d','%d','%d','%d','%d','%d','%d')",
    GetName(playerid),password,pInfo[playerid][pAge],pInfo[playerid][pSex],pInfo[playerid][pEmail],pInfo[playerid][pBanned],pInfo[playerid][pSkin],pInfo[playerid][pPerso],pInfo[playerid][pTut],pInfo[playerid][pAdmin],pInfo[playerid][pLevel],pInfo[playerid][pMoney],pInfo[playerid][pAutoLic],pInfo[playerid][pBikeLic],pInfo[playerid][pFlugLic]);
    mysql_query(string);



    aber ich finde keinen

  • mysql_log : [23:42:16]
    [23:42:16] ---------------------------
    [23:42:16] MySQL Debugging activated (01/25/14)
    [23:42:16] ---------------------------
    [23:42:16]
    [23:42:51] >> mysql_query( Connection handle: 1 )
    [23:42:51] CMySQLHandler::Query(SELECT * FROM `users` WHERE `pName`='Excus') - Successfully executed.
    [23:42:51] >> mysql_store_result( Connection handle: 1 )
    [23:42:51] CMySQLHandler::StoreResult() - Result was stored.
    [23:42:51] >> mysql_num_rows( Connection handle: 1 )
    [23:42:51] CMySQLHandler::NumRows() - Returned 0 row(s)
    [23:42:55] >> mysql_query( Connection handle: 1 )
    [23:42:55] CMySQLHandler::Query(SELECT * FROM `users` WHERE `pName`='Excus') - Successfully executed.
    [23:42:55] >> mysql_store_result( Connection handle: 1 )
    [23:42:55] CMySQLHandler::StoreResult() - Result was stored.
    [23:42:55] >> mysql_num_rows( Connection handle: 1 )
    [23:42:55] CMySQLHandler::NumRows() - Returned 0 row(s)
    [23:43:11] >> mysql_query( Connection handle: 1 )
    [23:43:11] CMySQLHandler::Query(SELECT * FROM `users` WHERE `pName`='Excus') - Successfully executed.
    [23:43:11] >> mysql_store_result( Connection handle: 1 )
    [23:43:11] CMySQLHandler::StoreResult() - Result was stored.
    [23:43:11] >> mysql_num_rows( Connection handle: 1 )
    [23:43:11] CMySQLHandler::NumRows() - Returned 0 row(s)
    [23:43:18] >> mysql_query( Connection handle: 1 )
    [23:43:18] CMySQLHandler::Query(INSERT INTO `users` (`pName`,`pPasswort`,`pAge`,`pSex`,`pEmail`,`pBanned`,`pSkin`,`pPerso`,`pTut`,`pAdmin`,`pLevel`,`pMoney`,`pAutoLic`,`pBikeLic`,`pFlugLic`) VALUES ('Excus','sssssssssssss','14','0') - An error has occured. (Error ID: 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 '' at line 1)
    [23:46:30] >> mysql_query( Connection handle: 1 )
    [23:46:30] CMySQLHandler::Query(UPDATE `users` SET `pTut`='0',`pAdmin`='0',`pBanned`='0',`pSkin`='0',`pEmail`='ss<AT>ss.de',`pFraktion`='0',`pAge`='14',`pSex`='0',`pLevel`='0',`pMoney`='0',`pPerso`='0' WHERE `pName` = 'Excus') - Successfully executed.
    [23:46:30] >> mysql_query( Connection handle: 1 )
    [23:46:30] CMySQLHandler::Query(UPDATE `users` SET `pOnline`='0' WHERE pName= 'Excus') - Successfully executed.

  • [23:43:18] CMySQLHandler::Query(INSERT INTO `users` (`pName`,`pPasswort`,`pAge`,`pSex`,`pEmail`,`pBanned`,`pSkin`,`pPerso`,`pTut`,`pAdmin`,`pLevel`,`pMoney`,`pAutoLic`,`pBikeLic`,`pFlugLic`) VALUES ('Excus','sssssssssssss','14','0') - An error has occured. (Error ID: 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 '' at line 1)
    Schau dir den Query an, da ist eindeutig was falsch.

  • ja ist mir schon klar genau hier: INSERT INTO `users` (`pName`,`pPasswort`,`pAge`,`pSex`,`pEmail`,`pBanned`,`pSkin`,`pPerso`,`pTut`,`pAdmin`,`pLevel`,`pMoney`,`pAutoLic`,`pBikeLic`,`pFlugLic`) VALUES ('%s','%s','%d','%d','%s','%d','%d','%d','%d','%d','%d','%d','%d','%d','%d')


    aber ich finde den fehler nicht