How to short this?
#3

#define MAX_BUY_PLACES 2
new Float:buyPlaces[MAX_BUY_PLACES][3] =
{
{x, y, z},
{x, y, z}// etc
};

In the command:

for (new i = 0; i < MAX_BUY_PLACES; i++)
{
if (IsPlayerInRangeOfPoint(playerid, 5.0, buyPlaces[i][0], buyPlaces[i][1], buyPlaces[i][2]))
{
// is near the point
break;
}
}
Reply


Messages In This Thread
How to short this? - by Squirrel - 11.12.2012, 17:30
Re: How to short this? - by DaRk_RaiN - 11.12.2012, 17:36
Re: How to short this? - by ReVo_ - 11.12.2012, 17:37
Re: How to short this? - by Squirrel - 11.12.2012, 17:38
Re: How to short this? - by ReVo_ - 11.12.2012, 17:46
Re: How to short this? - by Squirrel - 11.12.2012, 17:48

Forum Jump:


Users browsing this thread: 2 Guest(s)