[HELP] Public Enemy Housinfo 3dtext
#6

hello! Thanks for your quick reaction! =] But,

When i enter a house icon, i get the info:



That is correct, but when i buy the house, i will get this:



And when i reconnect the server, i see nothing.
This is my script code:

Код:
public UpdatePlayerInfo()
{
	for(new i=0; i<MAX_SLOTS; i++)
	{
		// House shit:
		for(new h = 0; h <MAX_HOUSES; h++)
		{
			if(PlayerToPoint(2, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
			{
   				if(HouseInfo[h][hOwned] == 1)
				{
				    if(HouseInfo[h][hRentabil] == 0)
         			{
         			    format(house_string, sizeof(house_string), "~w~De eigenaar van dit huis is ~n~%s~n~Level: %d", HouseInfo[h][hOwner], HouseInfo[h][hLevel]);
					   	//format(house_string, sizeof(house_string), "~w~%s~n~Owned by: ~r~%s", HouseInfo[h][hDescription], HouseInfo[h][hOwner]);
    					Update3DTextLabelText(Houselabel,0x2CDBDEFF,house_string);
						return 1;
					}
					else
					{
					    format(house_string, sizeof(house_string), "~w~De eigenaar van dit huis is ~n~%s~n~Level: %d~n~Rent: ~g~$%d ~w~level: %d~n~Typ /rentroom om een kamer te huren.", HouseInfo[h][hOwner], HouseInfo[h][hLevel], HouseInfo[h][hRent], HouseInfo[h][hLevel]);
					    //format(house_string, sizeof(house_string), "~w~%s~n~Owned by: ~r~%s~n~~w~(Rentable for ~g~$%d~w~)", HouseInfo[h][hDescription], HouseInfo[h][hOwner], HouseInfo[h][hRent]);
         				Update3DTextLabelText(Houselabel,0x2CDBDEFF,house_string);
						return 1;
					}
				}
				else
				{
				    format(house_string, sizeof(house_string), "Dit huis is te koop!\nDiscription: %s\nCost: $%d\nLevel: %d\nto buy this house type /buyhouse", HouseInfo[h][hDescription], HouseInfo[h][hValue], HouseInfo[h][hLevel]);
					//format(house_string, sizeof(house_string), "~w~%s~n~For sale, Cost: ~g~$%d~n~~w~Level: %d", HouseInfo[h][hDescription], HouseInfo[h][hValue], HouseInfo[h][hLevel]);
     				Houselabel = Create3DTextLabel(house_string,0x2CDBDEFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,15,0,1);
					return 1;
				}
			}
		}
Reply


Messages In This Thread
[HELP] Public Enemy Housinfo 3dtext - by JeroenX - 15.03.2012, 00:35
Re: [HELP] Public Enemy Housinfo 3dtext - by JeroenX - 15.03.2012, 10:37
Re: [HELP] Public Enemy Housinfo 3dtext - by TTJJ - 15.03.2012, 10:54
Re: [HELP] Public Enemy Housinfo 3dtext - by JeroenX - 15.03.2012, 10:58
Re: [HELP] Public Enemy Housinfo 3dtext - by TTJJ - 15.03.2012, 11:26
Re: [HELP] Public Enemy Housinfo 3dtext - by JeroenX - 15.03.2012, 11:56
Re: [HELP] Public Enemy Housinfo 3dtext - by TTJJ - 15.03.2012, 12:56
Re: [HELP] Public Enemy Housinfo 3dtext - by JeroenX - 15.03.2012, 13:52
Re: [HELP] Public Enemy Housinfo 3dtext - by JeroenX - 15.03.2012, 14:10
Re: [HELP] Public Enemy Housinfo 3dtext - by JeroenX - 16.03.2012, 15:53

Forum Jump:


Users browsing this thread: 1 Guest(s)