Impound Vehicle
#3

Quote:
Originally Posted by AndreT
Посмотреть сообщение
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?
Thank you for your reply AndreT, such a simple mistake. Can't believe i didn't notice it!
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.
Reply


Messages In This Thread
Impound Vehicle - solved - by ben1 - 09.12.2012, 14:14
Re: Impound Vehicle - by AndreT - 09.12.2012, 14:26
Re: Impound Vehicle - by ben1 - 09.12.2012, 14:43
Re: Impound Vehicle - by tsonn1 - 09.12.2012, 15:11
Re: Impound Vehicle - by ben1 - 09.12.2012, 15:56
Re: Impound Vehicle - by ikey07 - 09.12.2012, 16:25
Re: Impound Vehicle - by ben1 - 09.12.2012, 17:06

Forum Jump:


Users browsing this thread: 1 Guest(s)