View Single Post
Old 11/09/2019, 07:14 PM   #3
XStormiest
Gangsta
 
Join Date: Jun 2012
Location: Continent: Europe, Country: Romania, City: Buzau
Posts: 558
Reputation: 46
Default Re: Question about Arrays/MySQL

So what are you telling me is that I sould do something like this?

Code:
enum PLAYER_CARS
{
     //etc variables
     Vehicle[MAX_PLAYERS_VEHICLES]
} 
new P_CARS[MAX_PLAYERS][PLAYER_CARS]
And then reaching out to it like
Code:
P_CARS[playerid][Vehicle][0] = 451;
P_CARS[playerid][Vehicle][3] = 45;
Where for instance 451 is the model and 45 is the color, but what if I want to also use the name of the vehicle?


Is that right?
__________________
XStormiest is offline   Reply With Quote