How can I get this working? [Detailed][Vortex 1]
#9

Alright, but there is a problem.
As I saw its working, I want to add a feature which says in what street the house is at.
So, I downloaded include ''playerzone''.
And done this shit :

Код:
stock Create3DHouse()
{
    for(new NewHouseID; NewHouseID<sizeof(Houses); NewHouseID++)
    {
        if(!Houses[NewHouseID][hExteriorY]) continue;
        new string[ 96 ];
        if(Houses[NewHouseID][HousePrice] == -1)
        {
            format(string, sizeof(string), "[House]\n %d %s", NewHouseID, Houses[NewHouseID][HouseZone]);
            CreateDynamic3DTextLabel(string,RED,Houses[NewHouseID][hExteriorX],Houses[NewHouseID][hExteriorY],Houses[NewHouseID][hExteriorZ],30.0,0,1);
        }
        else
        {
            format(string, sizeof(string), "[House]\n %d %s \n $%d buy price(/buyhouse)", NewHouseID, Houses[NewHouseID][HouseZone] ,Houses[NewHouseID][HousePrice]);
            CreateDynamic3DTextLabel(string,ADMIN_GREEN,Houses[NewHouseID][hExteriorX],Houses[NewHouseID][hExteriorY],Houses[NewHouseID][hExteriorZ],30.0,0);
        }
    }
    return 1;
}
Код:
	        if(strcmp(Usage, "exterior", true) == 0)
    	    {
				Player[playerid][HouseExterior]++;
            	Player[playerid][hExtID] = GetPlayerInterior(playerid);
            	GetPlayerPos(playerid, Player[playerid][hExtX], Player[playerid][hExtY], Player[playerid][hExtZ]);
            	format(string, sizeof(string), "Exterior set! (X: %f, Y: %f, Z: %f).", Player[playerid][hExtX], Player[playerid][hExtY], Player[playerid][hExtZ]);
				Player[playerid][hZo] = GetPlayerZone(playerid);
				SendClientMessage(playerid, WHITE, string);
       		}
I included the ''playerzone''.
I even made a code that it'll save the HouseZone.

And because of that feature that I added, the 3DText dosent shows up again! =[, what I've done wrong?

I created variables with 128 Arrays in the enum of HouseData(HouseZone) and PlayerStatitics(hZo)

And somehow, it says on the House's file, that the 'HouseZone' is a number, I mean..

Take a look :

Its supposed to be like amm, Idlewood or something like that.
And why the 3DTextLabel dosent show up again?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)