05.03.2018, 19:32
new Placas[MAX_VEHICLES][32] = { "placa inicial", ... };
stock SetVehicleNumberPlateEx(vehicleid, numberplate[])
{
format(Placas[vehicleid], 32, numberplate);
return SetVehicleNumberPlate(vehicleid, numberplate);
}
#define SetVehicleNumberPlate SetVehicleNumberPlateEx
stock GetVehicleNumberPlate(vehicleid)
{
return Placas[vehicleid]; //caso isso nгo de, use o abaixo
/*
new string[32];
format(string, 32, Placas[vehicleid]);
return string;
*/
}
stock SetVehicleNumberPlateEx(vehicleid, numberplate[])
{
format(Placas[vehicleid], 32, numberplate);
return SetVehicleNumberPlate(vehicleid, numberplate);
}
#define SetVehicleNumberPlate SetVehicleNumberPlateEx
stock GetVehicleNumberPlate(vehicleid)
{
return Placas[vehicleid]; //caso isso nгo de, use o abaixo
/*
new string[32];
format(string, 32, Placas[vehicleid]);
return string;
*/
}