looking for a function
#7

using your code

Код:
   UnAttachObjectFromPlayer(playerid,Gate[StickedToObject[playerid]],GateData[StickedToObject[playerid]][gModel]);
    GetObjectPos(Gate[StickedToObject[playerid]], oX, oY, oZ);
    GetObjectRot(Gate[StickedToObject[playerid]], xR, yR, zR);
    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(GateData[StickedToObject[playerid]][gModel], oX, oY, oZ, xR, yR, zR, 100);
    StickedToObject[playerid] = 0;
same
Код:
[22:04:18] CMySQLHandler::Query(UPDATE `gates` SET `x` = '1524.510009', `y` = '-1726.829956', `z` = '15.410599', `rot1` = '0.000000', `rot2` = '0.000000', `rot3` = '0.000000' WHERE `SQLID` = '2') - Successfully executed.
outputs everywhere 0.00000

edit: missed something, testing.
EDIT2: Same
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: 6 Guest(s)