Near a object
#4

may we have a look at your item[] array? is it 2 dimensional and contains the x,y,z coordinate?
or is it the placeholder for the returned object ids? like
pawn Код:
item[0]=CreateObject(blabla);
if so, then you need a similar sized array, holding the coordinates:
pawn Код:
new Float:itemcoords[][3]={
{0.0000,0.0000,10.0000},
{2000.0000,2000.0000,10.0000}
}
...and
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 2.0, itemcoords[i][0], itemcoords[i][1], item[i][2])
Reply


Messages In This Thread
Near a object - by Oh - 17.01.2012, 22:30
Re: Near a object - by Vince - 17.01.2012, 22:53
Re: Near a object - by Oh - 17.01.2012, 23:03
Re: Near a object - by Babul - 18.01.2012, 00:44
Re: Near a object - by Oh - 18.01.2012, 00:57
Re: Near a object - by Tannz0rz - 18.01.2012, 02:54

Forum Jump:


Users browsing this thread: 2 Guest(s)