Problem with saving/loading
#10

Anyone can help me with the saving process here's the code
Код:
stock SaveBusiness()
{
	for(new i; i <= MAX_BUSINESS; i++)
	{
	    if(Business[i][Used])
	    {
	        new DB_Query[1000];
	        mysql_format(Database, DB_Query, sizeof(DB_Query),"UPDATE `BUSINESS` SET `NAME` = %s, `TYPE` = %d, `PRODUCT` = %d, `FEE` = %d, `OWNER` = %d, `SAFE` = %d, `VW` = %d, `INT` = %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][Owner], Business[i][Safe],Business[i][Vw], Business[i][Int], Business[i][Price],Business[i][PosX],Business[i][PosY],Business[i][PosZ],i);
	        mysql_tquery(Database, DB_Query);
		}
	}
	return 1;
}
it ain't saving !
Reply


Messages In This Thread
Problem with saving/loading - by Nru - 19.03.2018, 21:28
Re: Problem with saving/loading - by Chyakka - 19.03.2018, 23:24
Re: Problem with saving/loading - by Nru - 20.03.2018, 09:45
Re: Problem with saving/loading - by jasperschellekens - 20.03.2018, 10:03
Re: Problem with saving/loading - by Nru - 20.03.2018, 10:46
Re: Problem with saving/loading - by iKarim - 20.03.2018, 10:50
Re: Problem with saving/loading - by Nru - 20.03.2018, 10:56
Re: Problem with saving/loading - by kovac - 20.03.2018, 12:54
Re: Problem with saving/loading - by Nru - 20.03.2018, 13:23
Re: Problem with saving/loading - by Nru - 20.03.2018, 16:03

Forum Jump:


Users browsing this thread: 1 Guest(s)