Error 022: lvalue is not constant
#3

Quote:
Originally Posted by Blast3r
View Post
First of all, could you tell us which is the exact line of that error, second of all, why did you put return target which is defined to -1? Return should be 0 (False) or 1 (True).
Read the function's name, please.

GetClosestCar

It gets the closest car from a player. It returns the vehicleid, or if vehicles do not exist in the server, it returns -1.

@damian123: By the way, the distance should be less not greater.
Reply


Messages In This Thread
Error 022: lvalue is not constant - by damian123 - 26.09.2013, 15:44
Re: Error 022: lvalue is not constant - by Blast3r - 26.09.2013, 16:46
Re: Error 022: lvalue is not constant - by Konstantinos - 26.09.2013, 16:52
Re: Error 022: lvalue is not constant - by damian123 - 26.09.2013, 17:04

Forum Jump:


Users browsing this thread: 1 Guest(s)