02.05.2014, 23:01
Hi, everybody!
At me is fashions, loading of businesses is fashionable.
It looks as follows:
At start fashion flood ravine here so:
Problem in line:
I need to load the following hitherto:
Here so the MySQL database looks:
Help me to make correctly please inquiry for "sscanf".
At me is fashions, loading of businesses is fashionable.
It looks as follows:
PHP код:
new Result:busns = sql_query(zConn, "SELECT * FROM `business` ORDER BY `id`", QUERY_CACHED);
gBusinessCount = sql_num_rows(busns);
for(new i;i<gBusinessCount;i++)
{
sql_fetch_row(busns,"|",zRes);
sql_next_row(busns);
sscanf(zRes,"p<|>e<is[64]iiiiiiiiffffiiiii>iiii",gBusiness[i]);
gBusinessArea[i] = CreateDynamicSphere(gBusiness[i][busiX],gBusiness[i][busiY],gBusiness[i][busiZ],1.0);
CreateDynamicPickup(19132,1,gBusiness[i][busiX],gBusiness[i][busiY],gBusiness[i][busiZ]);
gBusinessText[i] = CreateDynamic3DTextLabel("_",CWHITE,gBusiness[i][busiX],gBusiness[i][busiY],gBusiness[i][busiZ]+1.0,20.0);
switch(gBusiness[i][busiMafia])
{
case F_COL: Terra[2]++;
case F_MEX: Terra[1]++;
case F_YAK: Terra[0]++;
}
}
sql_free_result(busns);
PHP код:
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
[01:41:33] sscanf warning: Format specifier does not match parameter count.
PHP код:
sscanf(zRes,"p<|>e<is[64]iiiiiiiiffffiiiii>iiii",gBusiness[i]);
PHP код:
busiID,
busiName[64],
busiType,
busiBint,
busiOwnerID,
busiSellPrice,
busiBank,
busiPrice,
busiProduct,
busiStatus,
Float:busiX,
Float:busiY,
Float:busiZ,
Float:busiR,
busiOrder,
busiDeliving,
busiDelivingArea,
busiDay,
busiMafia,
busiEnterPrice
PHP код:
CREATE TABLE IF NOT EXISTS `business` (
`id` int(4) NOT NULL AUTO_INCREMENT,
`name` varchar(64) COLLATE cp1251_bin NOT NULL,
`type` int(2) NOT NULL,
`bint` int(2) NOT NULL,
`ownerid` int(9) NOT NULL,
`sellprice` int(9) NOT NULL,
`bank` int(11) NOT NULL,
`price` int(4) NOT NULL,
`product` int(7) NOT NULL,
`status` tinyint(1) NOT NULL,
`x` float NOT NULL,
`y` float NOT NULL,
`z` float NOT NULL,
`r` float NOT NULL,
`order` int(8) NOT NULL DEFAULT '0',
`deliving` int(8) NOT NULL DEFAULT '0',
`day` int(30) NOT NULL,
`mafia` int(11) NOT NULL,
`enter` int(32) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251 COLLATE=cp1251_bin AUTO_INCREMENT=1 ;