How to use IsPlayerInRangeOfPoint in ZCMD?
#1

I got it thank you guys!
Reply
#2

pawn Код:
CMD:thisisacommand(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, Range ,X, Y, Z)
    }
        SetPlayerPos(playerid, X, Y, Z);
    }
    return 1;
}
Reply
#3

You're missing an ) for your IsPlayerInRangeOfPoint line.
Reply
#4

Quote:
Originally Posted by PrawkC
Посмотреть сообщение
You're missing an ) for your IsPlayerInRangeOfPoint line.
No, he added "Range" parameter to isPlayerInRangeOfPoint


if(IsPlayerInRangeOfPoint(playerid, Range ,X, Y, Z)

EDIT: lol, you edited your post
Reply
#5

Quote:
Originally Posted by Skorch
Посмотреть сообщение
No, he added "Range" parameter to isPlayerInRangeOfPoint


if(IsPlayerInRangeOfPoint(playerid, Range ,X, Y, Z)

EDIT: lol, you edited your post
He may have defined range some where, as he put x, y , z also.. so I am correct, as there is a missing )
Reply
#6

pawn Код:
CMD:thisisacommand(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 10 , X, Y, Z))// <-- This.
    {// <-- And This.
        SetPlayerPos(playerid, X, Y, Z);
    }
    return 1;
}
Reply
#7

EDIT: NVM
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)