17.08.2015, 11:19
There shouldn't be a space at 'const id'. Try this.
Also, you must put the threaded query into a callback. (Public.) Do you do this anywhere?
pawn Код:
stock saveDealer(constid)
{
for ( new i = 1, j = cache_num_rows(); i <= j; ++i )
{
format(szLargeString, sizeof(szLargeString), "UPDATE `dealer` SET `stock` = '%d',`price` = '%d',`Pprice` = '%d',`name` = '%d' WHERE `carID` = '%d'", vehSlots[i],vehPrice[i],vehPprice[i],vehName[i],i);
mysql_tquery(handle,szLargeString);
}
return 1;
}