Thankyou, I didnot understand it correclty the first time.


By the way... How to make sure an entity exists in an if statement? I think this is where my function is crashing:
Quote:
if(PreviousCar!=NULL)//If there exists a previous car or I am the first


PreviousCar is an entity declared like this:
Quote:
ENTITY* PreviousCar;


And before that function is called it is initialized as:
Quote:
PreviousCar=NULL;



The crash gives me Error E1514 so I think it must be related to that
Quote:
Error E1514: Invalid pointer or handle
An engine function, like handle or ptr_for_handle, was called with an invalid pointer or handle.



Does anyone know what I am doing wrong?


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1