03.12.2011, 19:53
Hi,I have a little problem with 3dtext...I have no errors but in game it doesn't go...
PAWNo:
PAWNo:
Код:
for(new h = carsonserver; h < sizeof(CarInfo); h++) { AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000); LoadComponents(h); if(CarInfo[h][cOwned] == 0) { new Text3D:vOwner; format(string, sizeof(string), "%s's Vehicle", CarInfo[h][cOwner]); vOwner = Create3DTextLabel(string,COLOR_WHITE,CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz],0.0,0); Attach3DTextLabelToVehicle(vOwner, h, CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]); } if(CarInfo[h][cOwned] == 1) { new Text3D:vOwner; format(string, sizeof(string), "[FOR SALE]$%d", CarInfo[h][cValue]); vOwner = Create3DTextLabel( string, 0xFF0000AA, CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1, 50.0, 0, 1 ); Attach3DTextLabelToVehicle( vOwner, h, CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1); } }