3Dtext Label won't update.
#1

Problem solved
Reply
#2

Can anyone help?
Reply
#3

Did you add a timer under OnGameModeInit?
Reply
#4

No, right now it's only checking under one command, for testing purpose.
Reply
#5

Use this


Код:
public UpdateHouses()
{
	for(new h = 0; h < sizeof(HouseInfo); h++)
	{
	    if(HouseInfo[h][hOwned] == 0)
		{
			new string[128];
            format(string, 128, "Price: %d\nLevel: %d",HouseInfo[h][hValue],HouseInfo[h][hLevel]);
            Update3DTextLabelText(Housetext, COLOR_WHITE, string);
		}
		if(HouseInfo[h][hOwned] == 1)
		{
            new string[128];
            format(string, 128, "Owner: %s\nLevel: %d\nRent: %d",HouseInfo[h][hOwner],HouseInfo[h][hLevel],HouseInfo[h][hRent]);
            Update3DTextLabelText(Housetext, COLOR_WHITE, string);
		}
	}

}
Reply
#6

Still not working, the 3Dlabel didn't update.

Can't see what you changed?
Reply
#7

Код:
Update3DTextLabelText(Text3D:Housetext, COLOR_WHITE, string); changed to Update3DTextLabelText(Housetext, COLOR_WHITE, string);
I removed Text3D
Reply
#8

Aha, any idea why it's not working?
Reply
#9

I would realy like to help but i cant find whats wrong
Reply
#10

You need to add a timer so it can show and update like SetTimer("UpdateHouses",1000,1);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)