06.04.2017, 17:01
Okay, So first you change your ENUM to this:
This is waaay easier. Now if you want to access the slots it would be like this:
But doing this would mean you have to change your whole script!!!!!
PHP код:
enum InfoVehicles
{
vehicle[4],
model[4],
world[4],
interior[4],
Float:x_[4],
Float:y_[4],
Float:z_[4],
Float:angel_[4],
};
PHP код:
vInfo[playerid][vehicle][0] = ... //Slot 1
vInfo[playerid][vehicle][1] = ... //Slot 2
vInfo[playerid][vehicle][2] = ... //Slot 3
vInfo[playerid][vehicle][3] = ... //Slot 4
vInfo[playerid][vehicle][4] = ... //Slot 5