20.03.2018, 21:30
I have a problem with saving system I made a command to save business but it's not working I get like "UNKNOWN COMMAND" IG and the command exists here's the code
Код:
CMD:savebiz(playerid, params[]) { new DB_Query[2000]; //Running a query to save the player's data using the stored stuff. for(new i; i <= MAX_BUSINESS; i++) { if(Business[i][Used]) { mysql_format(Database, DB_Query, sizeof(DB_Query), "UPDATE `BUSINESS` SET `NAME` = %s, `TYPE` = %d, `PRODUCT` = %d, `FEE` = %d, `SAFE` = %d, `VW` = %d, `INT` = %d, `OWNER` = %d, `PRICE` = %d, `PosX` = %f, `PosY` = %f, `PosZ` = %f WHERE `ID` = %d LIMIT 1", Business[i][Name],Business[i][Type],Business[i][Product],Business[i][Fee],Business[i][Safe],Business[i][Vw],Business[i][Int],Business[i][Owner],Business[i][Price],Business[i][PosX],Business[i][PosY],Business[i][PosZ],i); mysql_tquery(Database, DB_Query); } } return SendClientMessage(playerid, COLOR_RED,"DONE DONE DONE DONE"); }