enum cvInfo
{
cvDono[24],
cvModelo,
Float:cvSpawn[4],
cvCor1,
cvCor2,
cvID
}
static const CarrosVIP[][cvInfo] =
{
{"Nome_Sobrenome",451,{478.008209,-1171.653442,63.505199,188.740905},151,151},
{"Nome_Sobrenome",487,{454.678710,-1152.181884,68.754898,183.735305},0,151},
{"Nome_Sobrenome",519,{2087.705566,-2593.150878,14.468700,91.079200},0,0},
{"Nome_Sobrenome",470,{268.559600,-1790.210815,5.085499,268.374786},0,0}
.
.
.
}
public OnGameModeInit()
{
for(new i = 0; i<sizeof(CarrosVIP); i++)
{
CarrosVIP[i][cvID] = AddStaticVehicle(CarrosVIP[i][cvModelo],CarrosVIP[i][cvSpawn],CarrosVIP[i][cvCor1],CarrosVIP[i][cvCor2]);
}
return 0;
}
Float:cvSpawn[4],
Float:cvX,
Float:cvY,
Float:cvZ,
Float:cvA,
enum cvInfo
{
cvDono[24],
cvModelo,
Float:cvX,
Float:cvY,
Float:cvZ,
Float:cvA,
cvCor1,
cvCor2,
cvID
}
static const CarrosVIP[][cvInfo] = {
{"Nome_Sobrenome",451,478.008209,-1171.653442,63.505199,188.740905,151,151},
{"Nome_Sobrenome",487,454.678710,-1152.181884,68.754898,183.735305,0,151},
{"Nome_Sobrenome",519,2087.705566,-2593.150878,14.468700,91.079200,0,0},
{"Nome_Sobrenome",470,268.559600,-1790.210815,5.085499,268.374786,0,0}
};
public OnGameModeInit()
{
for(new i = 0; i<sizeof(CarrosVIP); i++)
{
CarrosVIP[i][cvID] = AddStaticVehicle(CarrosVIP[i][cvModelo],CarrosVIP[i][cvX],CarrosVIP[i][cvY],CarrosVIP[i][cvZ],CarrosVIP[i][cvA],CarrosVIP[i][cvCor1],CarrosVIP[i][cvCor2]);
}
return 0;
}
Sу ajusta isso
pawn Код:
pawn Код:
|
enum cvInfo
{
cvDono[24],
cvModelo,
Float:cvSpawn_X,
Float:cVSpawn_Y,
Float:cVSpawn_Z,
cvCor1,
cvCor2,
cvID
}
static const CarrosVIP[][cvInfo] =
{
{"Nome_Sobrenome",451,{478.008209,-1171.653442,63.505199,188.740905},151,151},
{"Nome_Sobrenome",487,{454.678710,-1152.181884,68.754898,183.735305},0,151},
{"Nome_Sobrenome",519,{2087.705566,-2593.150878,14.468700,91.079200},0,0},
{"Nome_Sobrenome",470,{268.559600,-1790.210815,5.085499,268.374786},0,0}
.
.
.
}
public OnGameModeInit()
{
for(new i = 0; i<sizeof(CarrosVIP); i++)
{
CarrosVIP[i][cvID] = AddStaticVehicle(CarrosVIP[i][cvModelo],CarrosVIP[i], CarrosVIP[i][cvSpawn_X],CarrosVIP[i][cvSpawn_Y],CarrosVIP[i][cvSpawn_Z],CarrosVIP[i][cvCor1],CarrosVIP[i][cvCor2]);
}
return 0;
}
enum cvInfo
{
cvDono[24],
cvModelo,
Float:cvSpawnX,
Float:cvSpawnY,
Float:cvSpawnZ,
Float:cvSpawnA,
cvCor1,
cvCor2,
cvID
}
static const CarrosVIP[][cvInfo] =
{
{"Nome_Sobrenome",451,478.008209,-1171.653442,63.505199,188.740905,151,151},
{"Nome_Sobrenome",487,454.678710,-1152.181884,68.754898,183.735305,0,151},
{"Nome_Sobrenome",519,2087.705566,-2593.150878,14.468700,91.079200,0,0},
{"Nome_Sobrenome",470,268.559600,-1790.210815,5.085499,268.374786,0,0}
};
for(new i = 0; i<sizeof(CarrosVIP); i++)
{
CarrosVIP[i][cvID] = AddStaticVehicle(CarrosVIP[i][cvModelo],CarrosVIP[i][cvSpawnX],CarrosVIP[i][cvSpawnY],CarrosVIP[i][cvSpawnZ],CarrosVIP[i][cvSpawnA],CarrosVIP[i][cvCor1],CarrosVIP[i][cvCor2]);
}
Retiro o que eu disse sobre enum.
Ao compilar, dб erro de argumentos? |