Quote:
Originally Posted by Hiddos
You're doing it wrong.
You're having:
pawn Код:
if PlayerToPoint(2116.6833,2416.7131,49.5234);
The symbol ';' is used for functions like SendClientMessage, not for checking things like 'if(IsPlayerAdmin(playerid))'
The function PlayerToPoint is:
pawn Код:
PlayerToPoint(Float:radi,playerid,Float:x,Float:y,Float:z;)
You're only filling in the 'X', the 'Y' and the 'Z', not the radius and the playerid.
Try this for example:
pawn Код:
if(PlayerToPoint(10,playerid2116.6833,2416.7131,49.5234))
|
Basically he means to not to use ';' in conditions. And you also don't need to use PlayerToPoint, we have a better one now, it's IsPlayerInRangeOfPoint.