House system - 3dtextlabels
#1

Hi, I'm using Stefan's Elite House System - https://sampforum.blast.hk/showthread.php?tid=98767

But I don't like gametexts and I want to make it in 3dtextlabels, but I have problems with it and can't change it.

This is the code:

Код:
public ReadPlayerHouseData(playerid)
{
	new string[256], house[64];
	for(new h = 0; h <= MAX_HOUSES; h++){
		format(house, sizeof(house), "/Houses/%d.dini.save", h);
	    if(dini_Exists(house)){
			if(HouseInfo[h][hSellable] == 1){
	  			if(PlayerToPoint(PTP_RADIUS, playerid, HouseInfo[h][hExitX], HouseInfo[h][hExitY], HouseInfo[h][hExitZ])) {
     format(string, sizeof(string), "~g~] House for Sale ]~n~~w~Owner:~y~ %s~n~~w~Level:~r~ %d~n~~w~Sell Price:~r~ %d~n~~w~Rent Cost:~r~ %d", HouseInfo[h][hName], HouseInfo[h][hLevel], HouseInfo[h][hSell], HouseInfo[h][hRent]);
					GameTextForPlayer(playerid,string, 1500, 3);
					 AddStaticPickup(1273, 1, HouseInfo[h][hExitX], HouseInfo[h][hExitY], HouseInfo[h][hExitZ], -1);
				}
			} else if(HouseInfo[h][hSellable] == 0){
				if(PlayerToPoint(PTP_RADIUS, playerid, HouseInfo[h][hExitX], HouseInfo[h][hExitY], HouseInfo[h][hExitZ])) {
					format(string, sizeof(string), "~w~Owner:~y~ %s~n~~w~Level:~r~ %d~n~~w~Rent Cost:~r~ %d", HouseInfo[h][hName], HouseInfo[h][hLevel], HouseInfo[h][hRent]);
					GameTextForPlayer(playerid,string, 1500, 3);
					 AddStaticPickup(1318, 1, HouseInfo[h][hExitX], HouseInfo[h][hExitY], HouseInfo[h][hExitZ], -1);
				} } } }
}
I want to change this into 3d text labels. Please help me, and sorry for bad English.
Reply
#2

BUMP*

Please help.
Reply
#3

All you need to do is replace GameTextForPlayer with Create3DTextLabel, start learning the basics.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)