[HELP PLEEASE] calculating kilometers from a point
#1

Hello first thing i have this error.

Код:
....\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.
My code is

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));
Reply


Messages In This Thread
[HELP PLEEASE] calculating kilometers from a point - by TheArcher - 14.09.2011, 20:22
Re: [HELP PLEEASE] calculating kilometers from a point - by rt-2 - 14.09.2011, 20:30
Re: [HELP PLEEASE] calculating kilometers from a point - by [HiC]TheKiller - 14.09.2011, 20:59
Re: [HELP PLEEASE] calculating kilometers from a point - by TheArcher - 15.09.2011, 13:53

Forum Jump:


Users browsing this thread: 1 Guest(s)