not work ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: not work ? (
/showthread.php?tid=379234)
not work ? -
gabitzu4ever - 21.09.2012
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,0);
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,0);
Attach3DTextLabelToVehicle(TextUpCar[c],c,0.0,0.0,0.0);
}
}
Not appear text3d. Why ?
Re: not work ? -
Lordzy - 21.09.2012
Use Create3dTextLabel and also use streamer.
Re: not work ? -
gabitzu4ever - 21.09.2012
no it does not work
Re: not work ? -
Danyal - 21.09.2012
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);
}
}
try that...
hope it works...
Re: not work ? -
gabitzu4ever - 21.09.2012
work

thanks rep+
Re: not work ? -
Danyal - 21.09.2012
Quote:
Originally Posted by gabitzu4ever
work  thanks rep+
|
No problem
i am still learning