04.03.2015, 06:38
PHP код:
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (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 'WHERE fID = '1'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (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 'WHERE fID = '2'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (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 'WHERE fID = '3'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (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 'WHERE fID = '5'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (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 'WHERE fID = '6'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (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 'WHERE fID = '7'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (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 'WHERE fID = '9'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (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 'WHERE fID = '8'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (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 'WHERE fID = '11'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (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 'WHERE fID = '10'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (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 'WHERE fID = '12'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (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 'WHERE fID = '13'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (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 'WHERE fID = '15'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (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 'WHERE fID = '16'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (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 'WHERE fID = '17'' at line 1
[12:00:00] [ERROR] CMySQLQuery::Execute[()] - (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 'WHERE fID = '18'' at line 1
[13:05:46] [ERROR] cache_get_row_int - invalid data type
[13:05:46] [ERROR] cache_get_row_int - invalid data type
PHP код:
public LoadFraction()
{
new time = GetTickCount();
new r, f;
cache_get_data(r, f);
new idx;
for(idx = 1; idx <= r; idx++)
{
Fraction[idx][fID] = cache_get_row_int(idx-1,0, DATABASE);
Fraction[idx][fSkin][0] = cache_get_row_int(idx-1, 1, DATABASE);
Fraction[idx][fSkin][1] = cache_get_row_int(idx-1, 2, DATABASE);
Fraction[idx][fSkin][2] = cache_get_row_int(idx-1, 3, DATABASE);
Fraction[idx][fSkin][3] = cache_get_row_int(idx-1, 4, DATABASE);
Fraction[idx][fSkin][4] = cache_get_row_int(idx-1, 5, DATABASE);
Fraction[idx][fSkin][5] = cache_get_row_int(idx-1, 6, DATABASE);
Fraction[idx][fSkin][6] = cache_get_row_int(idx-1, 7, DATABASE);
Fraction[idx][fSkin][7] = cache_get_row_int(idx-1, 8, DATABASE);
Fraction[idx][fSkin][8] = cache_get_row_int(idx-1, 9, DATABASE);
Fraction[idx][fBank][0] = cache_get_row_int(idx-1, 10, DATABASE);
Fraction[idx][fSkinKolvo] = cache_get_row_int(idx-1, 11, DATABASE);
Fraction[idx][fMesto][0] = cache_get_row_float(idx-1, 12, DATABASE);
Fraction[idx][fMesto][1] = cache_get_row_float(idx-1, 13, DATABASE);
Fraction[idx][fMesto][2] = cache_get_row_float(idx-1, 14, DATABASE);
Fraction[idx][fRankMax] = cache_get_row_int(idx-1, 15, DATABASE);
Fraction[idx][fPay][0] = cache_get_row_int(idx-1, 16, DATABASE);
Fraction[idx][fPay][1] = cache_get_row_int(idx-1, 17, DATABASE);
Fraction[idx][fBank][1] = cache_get_row_int(idx-1, 18, DATABASE);
Fraction[idx][fBank][2] = cache_get_row_int(idx-1, 19, DATABASE);
TOTALFRAC++;
}
printf("[Загружено фракций]: <%i>. Потрачено: <%i мс>",TOTALFRAC,GetTickCount()-time);
return true;
}