18.01.2012, 00:44
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
if so, then you need a similar sized array, holding the coordinates:
...and
or is it the placeholder for the returned object ids? like
pawn Код:
item[0]=CreateObject(blabla);
pawn Код:
new Float:itemcoords[][3]={
{0.0000,0.0000,10.0000},
{2000.0000,2000.0000,10.0000}
}
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 2.0, itemcoords[i][0], itemcoords[i][1], item[i][2])