09.12.2012, 14:43
Quote:
Your mistake is simple because I assume PlayerToPoint takes 5 parameters whereas you pass only 3 to it on an instance. GetVehiclePos returns values by reference, not directly (which, for an array, is not possible in Pawn, by the way).
Also, why on EARTH do you use PlayerToPoint? This is an outdated and SLOW version of the now-native IsPlayerInRangeOfPoint function. START. USING. IT. Also, why do you check if the player who entered the command is connected? How can a player, who does not exist, use a command in the first place? |
Could have just suggested IsPlayerInRangeOfPoint though... Didn't have to say it in the way you did. Which is why generally i would +rep somebody, but in this case i will not be.
Thank you for your help.