MYSQL and main() has been called.
#10

There shouldn't be a space at 'const id'. Try this.

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;
}
Also, you must put the threaded query into a callback. (Public.) Do you do this anywhere?
Reply


Messages In This Thread
MYSQL and main() has been called. - by Invizion - 16.08.2015, 15:04
Re: MYSQL and main() has been called. - by DaniceMcHarley - 16.08.2015, 15:10
Re: MYSQL and main() has been called. - by Invizion - 16.08.2015, 15:18
Re: MYSQL and main() has been called. - by DaniceMcHarley - 16.08.2015, 15:25
Re: MYSQL and main() has been called. - by Invizion - 16.08.2015, 16:43
Re: MYSQL and main() has been called. - by DaniceMcHarley - 16.08.2015, 19:04
Re: MYSQL and main() has been called. - by Invizion - 16.08.2015, 21:58
Re: MYSQL and main() has been called. - by DaniceMcHarley - 17.08.2015, 06:34
Re: MYSQL and main() has been called. - by Invizion - 17.08.2015, 10:10
Re: MYSQL and main() has been called. - by Dokins - 17.08.2015, 11:19

Forum Jump:


Users browsing this thread: 5 Guest(s)