04.12.2009, 09:53
Hi,
I have a bank system, and i wanted to check if the player is near a bank position
so i have this in my command:
and this on top of my script
and I get this error:
I marked the line in the code.
So why doesn't it work?
I have a bank system, and i wanted to check if the player is near a bank position
so i have this in my command:
pawn Код:
if(GetDistanceToPoint(playerid,CashDispensers[0], CashDispensers[1], CashDispensers[2])>2) // ERROR LINE <-----
{
SystemMessage(playerid, "You must be near a cash machine to withdraw money.");
return 1;
}
pawn Код:
new Float:CashDispensers[5][3] = {
{2202.316895, 2010.168091, 11.420787},
{1326.405151, -893.362244, 40.011265},
{1834.592407, -1850.649902, 13.768372},
{-2399.150391, 760.003479, 36.177097},
{1342.210449, -1760.475708, 14.424191}
};
Код:
Line:(1905) : error 035: argument type mismatch (argument 2)
So why doesn't it work?