22.08.2010, 18:30
I'm already using that
This is the code i'm using.. maybe the problem is in the code?
Note the "rot1" , "rot2", "rot3"
This is the code i'm using.. maybe the problem is in the code?
Код:
GetObjectPos(Gate[StickedToObject[playerid]], oX, oY, oZ); GetObjectRot(Gate[StickedToObject[playerid]], xR, yR, zR); DestroyObject(Gate[StickedToObject[playerid]]); format(string, sizeof(string), "UPDATE `gates` SET `x` = '%f', `y` = '%f', `z` = '%f', `rot1` = '%f', `rot2` = '%f', `rot3` = '%f' WHERE `SQLID` = '%d'", oX, oY, oZ, xR, yR, zR, StickedToObject[playerid]); mysql_query(string); Gate[StickedToObject[playerid]] = CreateObject(newobj, oX, oY, oZ, xR, yR, zR, 100); StickedToObject[playerid] = 0;
Код:
CMySQLHandler::Query(UPDATE `gates` SET `x` = '1487.839965', `y` = '-1736.550048', `z` = '13.392800', `rot1` = '0.000000', `rot2` = '0.000000', `rot3` = '0.000000' WHERE `SQLID` = '3') - Successfully executed.