OK, you should really take a look at the car template. Try to script the menu, the gameplay and the car physics first. Then you can try to write the AI and ask if you have problems.
Gamestudio: A7.82 Commercial/A8 Commercial System specs (Laptop): Windows 7 64bit DirectX v10.1 Intel Core i7-720QM CPU @ 1,60 GHz 4GB DDR2 Ram NVIDIA GeForce GT 230M (1024MB)