help to fix an error
#6

Quote:
Originally Posted by tyler12
Посмотреть сообщение
I'd recommend reading the wiki page for GetObjectPos.
pawn Код:
new Float:x,Float:y,Float:z;
GetObjectPos(GATE6, x, y, z);
if(x == 1587.89941406 && y == -1718.39941406 && z = 1448.59997559)
{
    MoveObject(GATE6,1587.9688,-1722.7001,1449.6000,2.0);
    SCM(playerid,0xFFFFFFFF,"opening!");
}
else if(x == 1587.9688 && y == -1722.7001 && z == 1449.6000)
{
    MoveObject(GATE6,1587.89941406,-1718.39941406,1448.59997559,2.0);
    SCM(playerid,0xFFFFFFFF,"closing!");
}
i have readed wiki, but I didn't know how how to make this before:
Код:
if(x == 1587.9688 && y == -1722.7001 && z == 1449.6000)
thank you for code, it's working fine
Reply


Messages In This Thread
help to fix an error - by Dainyzxz - 16.03.2013, 09:56
Re: help to fix an error - by Jstylezzz - 16.03.2013, 09:58
Re: help to fix an error - by Dainyzxz - 16.03.2013, 10:01
Re: help to fix an error - by Jstylezzz - 16.03.2013, 10:06
Re: help to fix an error - by tyler12 - 16.03.2013, 10:08
Re: help to fix an error - by Dainyzxz - 16.03.2013, 10:20

Forum Jump:


Users browsing this thread: 3 Guest(s)