23.03.2012, 10:26
No problem...The reasons yours probably didn't work is...
Takes 5 arguments...
Even if it were to work, you had it as a random which is fine if you only have 1 atm..But if you have 2, 1/2 chance to work. 3, 1/3, 4 1/4, 5 1/5, etc.
Plus you should place it in an if statement
Will give you an array error saying it's to small. The reason for that is because there's actually 3 slots in the second dimension that need to be used, X, Y, and Z.
Also when you commented out the other if, you forgot a bracket, and indented horribly :P
pawn Код:
IsPlayerInRangeOfPoint(playerid, 4.0, atm[rand][0]); //is 3011
pawn Код:
IsPlayerInRangeOfPoint(playerid, Float:radius, Float:X, Float:Y, Float:Z);
Plus you should place it in an if statement
pawn Код:
Float:atm[][0]
Also when you commented out the other if, you forgot a bracket, and indented horribly :P