12.02.2010, 03:31
No that wasn't anything to do with the problem.
However your problem is easy:
SpawnedVehicles[playerid] = CreateVehicle(cars,X,Y,Z,ROT,-1,-1,60);
cars is the enum list not what the user typed.
You need to check what the user typed in and use that.
So yah just have an array of vehicle names, I don't think there is any way to get strings to enums.
ex:
new vehicles[212][] = {"Landstalker", ....}
Wait you just released a script like this:
http://forum.sa-mp.com/index.php?topic=150905.0
However your problem is easy:
SpawnedVehicles[playerid] = CreateVehicle(cars,X,Y,Z,ROT,-1,-1,60);
cars is the enum list not what the user typed.
You need to check what the user typed in and use that.
So yah just have an array of vehicle names, I don't think there is any way to get strings to enums.
ex:
new vehicles[212][] = {"Landstalker", ....}
Wait you just released a script like this:
http://forum.sa-mp.com/index.php?topic=150905.0