02.10.2010, 11:51
(
Последний раз редактировалось Crashty; 02.10.2010 в 15:02.
)
Hello
I'm trying to make a test object move, But there's a problem, The object do move, But another object stays there where the original object moved :\
Here's my code:
p.s: some of the "{,}" position changes in CODE for some reason..
I'm trying to make a test object move, But there's a problem, The object do move, But another object stays there where the original object moved :\
Here's my code:
pawn Код:
if(strcmp(cmd,"/test",true)==0)
{
new test;
test = CreateObject(980, 2091.7006835938, -1753.1389160156, 15.178255081177, 0, 0, 0);
if(gTeam[playerid] == 1)
{
if(IsPlayerInRangeOfPoint(playerid,30,2091.7006835938, -1753.1389160156, 15.178255081177))
{
MoveObject(test,2091.7006835938, -1753.1389160156, 30.178255081177,5);
}
else
{
SendClientMessage(playerid,RED2,"You are too far!");
}
}
else
{
SendClientMessage(playerid,GREEN,"You can't do that in your team!");
}
return 1;
}
p.s: some of the "{,}" position changes in CODE for some reason..