14.09.2011, 20:22
Hello first thing i have this error.
My code is
Код:
....\gamemodes\lvdm.pwn(282) : error 076: syntax error in the expression, or invalid function call Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
pawn Код:
new string[128];
new
Float: fX,
Float: fY,
Float: fZ
;
GetPlayerPos(playerid, fX, fY, fZ);
GetPointDistanceToPoint3D(fX, fY, fZ, 792.0, 1212.0, 24.5);
format(string, sizeof(string), " Kilomters %d to the point", GetPointDistanceToPoint3D);
SendClientMessage(playerid, -1, string);
pawn Код:
stock Float: GetPointDistanceToPoint3D(Float: fX1, Float: fY1, Float: fZ1, Float: fX2, Float: fY2, Float: fZ2)
return floatsqroot(((fX1 -= fX2) * fX1) + ((fY1 -= fY2) * fY1) + ((fZ1 -= fZ2) * fZ1));