27.09.2016, 15:35
I have this stock
And when I call the stock it doesn't carry out. It doesn't send the mysql query and doesn't send the debug message aswell.
pawn Код:
stock SaveFurniture(id)
{
if(cache_num_rows())
{
new zString[256];
format(zString, 256, "%d,%s,%s", Furn[id][MATModel], Furn[id][MATTXD], Furn[id][MATTexture]);
format(szQuery, sizeof(szQuery), "UPDATE `newrp_furnitures` SET `fX` = %f, `fY` = %f, `fZ` = %f, `fRotX` = %f, `fRotY` = %f, `fRotZ` = %f, `materials` = '%s' WHERE `ID` = %d", Furn[id][poses][0], Furn[id][poses][1], Furn[id][poses][2], Furn[id][rot][0], Furn[id][rot][1], Furn[id][rot][2], zString, id);
mysql_query(sql, szQuery);
printf("[DEBUG]: A furniture was successfully saved.");
}
return 1;
}