how would this workout ?
#1

pawn Код:
stock GetPlayerDistanceFromPlayer(player1,player2)
{
    new Float:X,Float:Y,Float:Z;
    GetPlayerPos(player2,X,Y,Z);
    new distance = GetPlayerDistanceFromPoint(player1,X,Y,Z);
   
    return distance;
}
Reply
#2

If your 'GetPlayerDistanceFromPoint' code is correct, that will work fine provided you give distance a Float: tag
Reply
#3

pawn Код:
stock Float: GetPlayerDistanceFromPlayer(playerid, giveplayerid)
{
Such as this.
Reply
#4

No lol

new Float:distance
Reply
#5

ahhhhh.. yes new Float:distance thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)