23.03.2018, 00:01
I get no error even in the MySQL log file but it's not saving why ?
Код:
stock SaveBankAccounts() { new DB_Query[200]; for(new i= 1; i <= MAX_BANK_ACCOUNTS; i++) { if(bAccount[i][Used]) { mysql_format(Database, DB_Query, sizeof(DB_Query),"UPDATE `BANKACCOUNTS` SET `VALUE` = %d WHERE `ID` = %d LIMIT 1", bAccount[i][Value], i); mysql_tquery(Database, DB_Query); } } return 1; } stock SaveBusiness() { new DB_Query[1000]; for(new i; i < MAX_BUSINESS; i++) { if(Business[i][Used]) { mysql_format(Database, DB_Query, sizeof(DB_Query), "UPDATE `BUSINESS` SET `TYPE` = %d, `PRODUCT` = %d, `FEE` = %d, `SAFE` = %d, `VW` = %d, `INT` = %d, `IINT` = %d, `OWNER` = %d, `PRICE` = %d, `PosX` = %f, `PosY` = %f, `PosZ` = %f, `CpPosX` = %f, `CpPosY` = %f, `CpPosZ` = %f, `IPosX` = %f, `IPosY` = %f, `IPosZ` = %f WHERE `ID` = %d LIMIT 1", Business[i][Type],Business[i][Product],Business[i][Fee],Business[i][Safe],Business[i][Vw],Business[i][Int],Business[i][IInt],Business[i][Owner],Business[i][Price],Business[i][PosX],Business[i][PosY],Business[i][PosZ],Business[i][CpPosX],Business[i][CpPosY],Business[i][CpPosZ],Business[i][IPosX],Business[i][IPosY],Business[i][IPosZ],i); mysql_tquery(Database, DB_Query); } } return 1; }