08.06.2016, 07:43
Hi all. I have
and
I want to know size of fracCars[0] here is:
How I can do this?
PHP код:
#define MAX_FRAC 5
#define MAX_VEHICLES_FRAC 30
new fracCars[MAX_FRAC][MAX_VEHICLES_FRAC];
PHP код:
public OnGameModeInit()
{
for(new i = 1; i < sizeof(fracCarMenti)+1; i++) // cars LSPD
{
fracCars[0][i] = CreateVehicle(596, fracCarMenti[i][0], fracCarMenti[i][1], fracCarMenti[i][2], fracCarMenti[i][3], 0, 1, 600, 1);
}
return 1;
}
PHP код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(modelid >= fracCars[0][0] && modelid <= sizeof(fracCars[0])) // LSPD cars
{
//code..
}
return 1;
}