What is wrong here? - 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: What is wrong here? (
/showthread.php?tid=301287)
What is wrong here? -
.EnjatsRed. - 03.12.2011
Hi,I have a little problem with 3dtext...I have no errors but in game it doesn't go...
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);
}
}
Re: What is wrong here? -
Mike_Peterson - 03.12.2011
pawn Код:
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] == 1)
{
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, 0,0,1);
}
else if(CarInfo[h][cOwned] == 0)
{
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, 0,0,1);
}
}
try something like this
Re: What is wrong here? -
.EnjatsRed. - 03.12.2011
thanks,it works
Re: What is wrong here? -
Mike_Peterson - 03.12.2011
No problem, it's my pleasure.
But you could give me some feedback by repping me