Help with something thats making me mad
#10

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

Reply


Messages In This Thread
Help with something thats making me mad - by Fedee! - 11.02.2010, 20:37
Re: Help with something thats making me mad - by mansonh - 11.02.2010, 20:40
Re: Help with something thats making me mad - by DarkPower - 11.02.2010, 20:42
Re: Help with something thats making me mad - by Fedee! - 11.02.2010, 20:43
Re: Help with something thats making me mad - by adsy - 11.02.2010, 20:56
Re: Help with something thats making me mad - by mansonh - 11.02.2010, 21:12
Re: Help with something thats making me mad - by Fedee! - 11.02.2010, 21:15
Re: Help with something thats making me mad - by mansonh - 11.02.2010, 21:36
Re: Help with something thats making me mad - by Fedee! - 11.02.2010, 21:45
Re: Help with something thats making me mad - by mansonh - 12.02.2010, 03:31

Forum Jump:


Users browsing this thread: 1 Guest(s)