Vehicles Slots Per 1Player
#8

Okay, So first you change your ENUM to this:

PHP код:
enum InfoVehicles
{
    
vehicle[4],
    
model[4],
    
world[4],
    
interior[4],
    
Float:x_[4],
    
Float:y_[4],
    
Float:z_[4],
    
Float:angel_[4],
}; 
This is waaay easier. Now if you want to access the slots it would be like this:
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 
But doing this would mean you have to change your whole script!!!!!
Reply


Messages In This Thread
Vehicles Slots Per 1Player - by se3a - 06.04.2017, 10:35
Re: Vehicles Slots Per 1Player - by LEOTorres - 06.04.2017, 10:54
Re: Vehicles Slots Per 1Player - by se3a - 06.04.2017, 11:04
Re: Vehicles Slots Per 1Player - by DarkSkull - 06.04.2017, 13:45
Re: Vehicles Slots Per 1Player - by se3a - 06.04.2017, 14:45
Re: Vehicles Slots Per 1Player - by DarkSkull - 06.04.2017, 15:50
Re: Vehicles Slots Per 1Player - by se3a - 06.04.2017, 16:34
Re: Vehicles Slots Per 1Player - by DarkSkull - 06.04.2017, 17:01
Re: Vehicles Slots Per 1Player - by se3a - 06.04.2017, 17:05
Re: Vehicles Slots Per 1Player - by DarkSkull - 06.04.2017, 17:07

Forum Jump:


Users browsing this thread: 1 Guest(s)