11.12.2012, 20:58 
	
	
	
		Hello 
goviscrap gave you the solution.
Some information for you:
The for-loop is for the different BuyPlaces ->
Buyplace0
...........|
...........|
...........↓
Buyplace3
buyPlaces[i][0] -> X-position
buyPlaces[i][1] -> Y-position
buyPlaces[i][2] -> Z-position
Why do you want to "link 2 IsPlayerInRange"?
Because of the different Buyplaces?
the for-loop do it already:
Instead of "MAX_BUY_PLACES" you can use "sizeof(buyPlaces)".
	
	
	
	

goviscrap gave you the solution.
Some information for you:
Код:
new Float:buyPlaces[MAX_BUY_PLACES][4] =
{                   X(0)       Y(1)    Z(2)
BuyPlace0	{1566.8317, -1691.0072, 5.8906},
BuyPlace1	{2175.8867,-2259.5242,14.7734},
BuyPlace2	{2497.3757, -1687.8939, 13.5221},
BuyPlace3	{1582.6523, -1341.9149, 16.4844}
};
Buyplace0
...........|
...........|
...........↓
Buyplace3
buyPlaces[i][0] -> X-position
buyPlaces[i][1] -> Y-position
buyPlaces[i][2] -> Z-position
Why do you want to "link 2 IsPlayerInRange"?
Because of the different Buyplaces?
the for-loop do it already:
pawn Код:
for (new i = 0; i < MAX_BUY_PLACES; i++)


