looking for a function
#5

I'm already using that

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;
Note the "rot1" , "rot2", "rot3"
Код:
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.
Reply


Messages In This Thread
looking for a function - by armyoftwo - 22.08.2010, 18:22
Re: looking for a function - by [XST]O_x - 22.08.2010, 18:26
Re: looking for a function - by armyoftwo - 22.08.2010, 18:27
Re: looking for a function - by [XST]O_x - 22.08.2010, 18:30
Re: looking for a function - by armyoftwo - 22.08.2010, 18:30
Re: looking for a function - by [XST]O_x - 22.08.2010, 18:41
Re: looking for a function - by armyoftwo - 22.08.2010, 18:57

Forum Jump:


Users browsing this thread: 1 Guest(s)