[help]"DistanceCameraTargetToLocation"
#1

help !

Код:
E:\The Game\xxxxxxxxx\xxxxxxx\xxxxx\xxx\mtrp.pwn(79518) : error 021: symbol already defined: "DistanceCameraTargetToLocation"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
the problem is "DistanceCameraTargetToLocation" i dont know what is the problem but i got an error..

this is the script :
pawn Код:
Float:DistanceCameraTargetToLocation(Float:CamX, Float:CamY, Float:CamZ,  Float:ObjX, Float:ObjY, Float:ObjZ,  Float:FrX, Float:FrY, Float:FrZ)
{
    new Float:TGTDistance;
    // get distance from camera to target
    TGTDistance = floatsqroot((CamX - ObjX) * (CamX - ObjX) + (CamY - ObjY) * (CamY - ObjY) + (CamZ - ObjZ) * (CamZ - ObjZ));
    new Float:tmpX, Float:tmpY, Float:tmpZ;
    tmpX = FrX * TGTDistance + CamX;
    tmpY = FrY * TGTDistance + CamY;
    tmpZ = FrZ * TGTDistance + CamZ;
    return floatsqroot((tmpX - ObjX) * (tmpX - ObjX) + (tmpY - ObjY) * (tmpY - ObjY) + (tmpZ - ObjZ) * (tmpZ - ObjZ));
}

stock IsPlayerAimingAt(playerid, Float:x, Float:y, Float:z, Float:radius)
{
    new Float:cx,Float:cy,Float:cz,Float:fx,Float:fy,Float:fz;
    GetPlayerCameraPos(playerid, cx, cy, cz);
    GetPlayerCameraFrontVector(playerid, fx, fy, fz);
    return (radius >= DistanceCameraTargetToLocation(cx, cy, cz, x, y, z, fx, fy, fz));
}
Reply
#2

Basically "DistanceCameraTargetToLocation" Is already defined somewhere in your script so you defined it twice.
Reply
#3

Quote:
Originally Posted by blazee14
Посмотреть сообщение
Basically "DistanceCameraTargetToLocation" Is already defined somewhere in your script so you defined it twice.
i know it, but i cant find where it is..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)