09.02.2013, 00:48
pawn Код:
if(VehForSale[x] == 1)
{
new string[128];
new name = VehModel[x] - 400;
format(string, sizeof(string), "%s, $%d, %s", VehicleNames[name], VehPrice[x], VehPlate[x]);
VehicleLabel[x] = CreateDynamic3DTextLabel(string, COLOUR_WHITE, VehSpawnX[x],VehSpawnY[x], VehSpawnZ[x], 100.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 0, -1, -1, 20.0);
}
x = the id of the vehicle loaded from MySQL.
I created this at the top of script:
pawn Код:
VehicleLabel[MAX_VEHICLES];