versuch mal bitte folgendes:
CodeAlles anzeigenstock SaveFraktion(fID) { new query[800], miniquery[600], miniquery2[600], string[150]; new count = GetTickCount(); new Rang[7][50]; mysql_real_escape_string(FrakInfo[fID][fRangName0], Rang[0], sqlHandle, 126); mysql_real_escape_string(FrakInfo[fID][fRangName1], Rang[1], sqlHandle, 126); mysql_real_escape_string(FrakInfo[fID][fRangName2], Rang[2], sqlHandle, 126); mysql_real_escape_string(FrakInfo[fID][fRangName3], Rang[3], sqlHandle, 126); mysql_real_escape_string(FrakInfo[fID][fRangName4], Rang[4], sqlHandle, 126); mysql_real_escape_string(FrakInfo[fID][fRangName5], Rang[5], sqlHandle, 126); mysql_real_escape_string(FrakInfo[fID][fRangName6], Rang[6], sqlHandle, 126); format(miniquery, sizeof(miniquery), "UPDATE `frakinfo` SET `Geld` = '%d', `Drogen` = '%d', `Mats` = '%d', `Gehalt0` = '%d', `Gehalt1` = '%d', `Gehalt2` = '%d', `Gehalt3` = '%d', `Gehalt4` = '%d', `Gehalt5` = '%d',`Gehalt6` = '%d',", FrakInfo[fID][fGeld], FrakInfo[fID][fDrogen], FrakInfo[fID][fMaterials], FrakInfo[fID][fGehalt0], FrakInfo[fID][fGehalt1], FrakInfo[fID][fGehalt2], FrakInfo[fID][fGehalt3], FrakInfo[fID][fGehalt4], FrakInfo[fID][fGehalt5], FrakInfo[fID][fGehalt6]); mysql_function_query(sqlHandle, miniquery, false, "QueryMeldung", ""); format(miniquery2, sizeof(miniquery2), "`RangName0` = '%s', `RangName1` = '%s', `RangName2` = '%s',`RangName3` = '%s',`RangName4` = '%s', `RangName5` = '%s', `RangName6` = '%s', `LongName` = '%s', `SmallName` = '%s', `MitgliederLimit` = '%d', `Status` = '%d', `BewerbungsStatus` = '%d', `PayDayPunkte` = '%d' WHERE fID = '%d'", Rang[0], Rang[1], Rang[2], Rang[3], Rang[4], Rang[5], Rang[6], FrakInfo[fID][fLongName], FrakInfo[fID][fSmallName], FrakInfo[fID][fMitgliederLimit], FrakInfo[fID][fStatus], FrakInfo[fID][fBewerbungsStatus], FrakInfo[fID][fPayDayPunkte], fID); mysql_function_query(sqlHandle, miniquery2, false, "QueryMeldung", ""); format(string, sizeof(string), "[MySQL] Die Fraktionsinformationen von Fraktions ID %d wurde mit einer Geschwindigkeit von %d Millisekunden gespeichert!", fID, GetTickCount() - count); SendMySQLMessage(string); UpdateFraktionsSchild(fID); return 1; }
Solltest du Fehlermeldungen hiernach erhalten bitte dann mitposten ;
da kommt nur das
[22:33:24] [ERROR] CMySQLQuery::Execute[QueryMeldung()] - (error #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 '`RangName0` = '', `RangName1` = '', `RangName2` = '',`RangName3` = '',`RangName4' at line 1
[22:33:24] [ERROR] CMySQLQuery::Execute[QueryMeldung()] - (error #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
[22:33:24] [ERROR] CMySQLQuery::Execute[QueryMeldung()] - (error #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 '`RangName0` = 'Schulsantäter', `RangName1` = 'Azubi', `RangName2` = 'Rettunghel' at line 1
[22:33:24] [ERROR] CMySQLQuery::Execute[QueryMeldung()] - (error #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
[22:33:24] [ERROR] CMySQLQuery::Execute[QueryMeldung()] - (error #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 '`RangName0` = '', `RangName1` = '', `RangName2` = '',`RangName3` = '',`RangName4' at line 1
[22:33:24] [ERROR] CMySQLQuery::Execute[QueryMeldung()] - (error #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
[22:33:24] [ERROR] CMySQLQuery::Execute[QueryMeldung()] - (error #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 '`RangName0` = '', `RangName1` = '', `RangName2` = '',`RangName3` = '',`RangName4' at line 1
[22:33:24] [ERROR] CMySQLQuery::Execute[QueryMeldung()] - (error #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