Get vehicle ID from name?
#3

I think he wants to do custom names for each vehicle. Anyway, there's some things about this that don't seem right. Did you define MAX_CARS? A_samp.inc has the definition as MAX_VEHICLES. Either way the maximum vehicles is 2000. That's a big ass array especially with an enumeration like that. Besides that, I don't think that you could store the vehicle's name in an enum.

pawn Код:
format(cInfo[9][Name],24,"Bob");
I'm not sure if that's considered a 3d array which PAWN doesn't support. Maybe it would work. Maybe not..
Reply


Messages In This Thread
Get vehicle ID from name? - by randomkid88 - 03.06.2010, 05:50
Re: Get vehicle ID from name? - by cessil - 03.06.2010, 06:06
Re: Get vehicle ID from name? - by Backwardsman97 - 03.06.2010, 06:09
Re: Get vehicle ID from name? - by randomkid88 - 03.06.2010, 06:28
Re: Get vehicle ID from name? - by Backwardsman97 - 03.06.2010, 06:38
Re: Get vehicle ID from name? - by randomkid88 - 03.06.2010, 14:48
Re: Get vehicle ID from name? - by RyDeR` - 03.06.2010, 14:52
Re: Get vehicle ID from name? - by randomkid88 - 03.06.2010, 15:34
Re: Get vehicle ID from name? - by Joe_ - 03.06.2010, 15:55
Re: Get vehicle ID from name? - by RyDeR` - 03.06.2010, 19:18

Forum Jump:


Users browsing this thread: 3 Guest(s)