21.09.2012, 05:32
pawn Код:
for(new c = 0; c < MAX_VEHICLES; c++)
{
new TextCar[200];
if (CarInfo[c][cOwned]==1)
{
format(TextCar,sizeof(TextCar),"{00FFEE}%s{FFFFFF}'s vehicle",CarInfo[c][cOwner]);
TextUpCar[c] = CreateDynamic3DTextLabel(TextCar, 0xFFFFFFAA ,0,0,0,20.0,INVALID_PLAYER_ID, c);
Attach3DTextLabelToVehicle(TextUpCar[c],c,0.0,0.0,0.0);
}
else if(CarInfo[c][cOwned]==0)
{
format(TextCar,sizeof(TextCar),"This vehicle is for sale, price: %d",CarInfo[c][cValue]);
TextUpCar[c] = CreateDynamic3DTextLabel(TextCar, 0xFFFFFFAA ,0,0,0,20.0,INVALID_PLAYER_ID, c);
Attach3DTextLabelToVehicle(TextUpCar[c],c,0.0,0.0,0.0);
}
}
hope it works...