What is wrong here?
#1

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);
	}
	}
Reply
#2

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
Reply
#3

thanks,it works
Reply
#4

No problem, it's my pleasure.
But you could give me some feedback by repping me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)