Jump to content
  • 0

House System with 3D Text Label


Question

Posted

Stiti,pe forum exista un [Fs] cu acest sistem de 3DText Label la toate casele .

Eh eu am luat decat 3DTextLabel,fiindca am alt sistem de case.. eh si problema e alta.. imi apare Text-ul(3D) dar sa zicem :

1.Intru cu [RsM]XpLoD pe server,avand casa. Ma duc la ea dau /sell si in loc sa zica (For sale) ramane pe [RsM]XpLoD

sau

2.Intru cu alt nume,care nu are casa pe server, caut o casa (For sale) si dau /buy si in loc sa zica (Numele la player) ramane tot (for sale) .. aveti idee ce ar trb sa fac? .. sa pun la /sell si /buy un Update3Dtextlabel.. :-?? n-am idee... am incercat imi dadea cva erori.. help me.

Thanks

ll364l6j8dg3et84ks3w.png

20 answers to this question

Recommended Posts

Posted

mda.. nu vad problema,daca tu zici ca a fost, asa sa fie.. si nu mi se pare de Godfather. iarta-ma !

la AddHouse(houseid, etc....

new string[1024];
		format(string, sizeof(string), "{FFFFFF}Proprietar: {FFAF00}%s\n{FFFFFF}Cost:  {00C0FF}%i", hInfo[houseid][Name],hInfo[houseid][Cost]);
   	 	housei[houseid] = CreateDynamic3DTextLabel(string,0x008080FF,iconX, iconY, iconZ,250.0);

si am bugu asta.. la buy si sell.

ll364l6j8dg3et84ks3w.png

Posted

La finalul comenzii /sell pui asta:

[pawn]new string[ 128 ];

for( new houseid; houseid < MAX_HOUSES; houseid ++ )

{

    format(string, sizeof(string), "{FFFFFF}Proprietar: {FFAF00}For Sale\n{FFFFFF}Cost:  {00C0FF}%i", hInfo[houseid][Cost]);

    Update3DTextLabelText(housei[houseid],0x008080FF,string);

}[/pawn]

Iar la finalul comenzii /buy pui asta:

[pawn]new string[ 128 ];

for( new houseid; houseid < MAX_HOUSES; houseid ++ )

{

    format(string, sizeof(string), "{FFFFFF}Proprietar: {FFAF00}%s\n{FFFFFF}Cost:  {00C0FF}%i", hInfo[houseid][Name],hInfo[houseid][Cost]);

    Update3DTextLabelText(housei[houseid],0x008080FF,string);

}[/pawn]

* Update3DTextLabelText.

PS: Ti-am facut cu aceasta modalitate si la proprietati, puteai sa te iei dupa ele.

Posted

tot nu merge.. si stiu ca mi-ai facut aia.  am spus ca ma incercat " am incercat imi dadea cva erori.. help me. "

ll364l6j8dg3et84ks3w.png

Posted

[pawn]public houseup(houseid, Float:iconX, Float:iconY, Float:iconZ)

{

        new string[1024];

        hInfo[houseid][iconx]=iconX;

        hInfo[houseid][icony]=iconY;

        hInfo[houseid][iconz]=iconZ;

    for(new i = 0; i <= MAX_HOUSES; i++)

    {

                format(string, sizeof(string), "{FFFFFF}Proprietar: {FFAF00}%s\n{FFFFFF}Cost:  {00C0FF}%i", hInfo[Name],hInfo[Cost]);

        UpdateDynamic3DTextLabelText(housei, 0xCCFFDDFF, string);

     

    }

    return 1;

}[/pawn]si sub defines or include pui [pawn]forward houseup(houseid, Float:iconX, Float:iconY, Float:iconZ);[/pawn] incearca asta+ da ca la tine e comezile dcmd pui [pawn]#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1[/pawn]

wtf?I fucking then school??????fuck school :))))

coolte12.png

Posted

Cops_sandu" post="72976" timestamp="1305778997"]

[pawn]public houseup(houseid, Float:iconX, Float:iconY, Float:iconZ)

{

        new string[1024];

        hInfo[houseid][iconx]=iconX;

        hInfo[houseid][icony]=iconY;

        hInfo[houseid][iconz]=iconZ;

    for(new i = 0; i <= MAX_HOUSES; i++)

    {

                format(string, sizeof(string), "{FFFFFF}Proprietar: {FFAF00}%s\n{FFFFFF}Cost:  {00C0FF}%i", hInfo[Name],hInfo[Cost]);

        UpdateDynamic3DTextLabelText(housei, 0xCCFFDDFF, string);

     

    }

    return 1;

}[/pawn]si sub defines or include pui [pawn]forward houseup(houseid, Float:iconX, Float:iconY, Float:iconZ);[/pawn] incearca asta+ da ca la tine e comezile dcmd pui [pawn]#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1[/pawn]

am tot ce mi-ai zis :)

ll364l6j8dg3et84ks3w.png

Posted

de modificat,nu am modificat:D am pus ce mi-a zis Stuntman, dar nu-mi merge :D .

Repet eu deja am un sistem de House :D  si /sell si /buy seamana intre ele. doar am adaugat ce mi-a spus stuntman,dar nu merge.

ll364l6j8dg3et84ks3w.png

Posted

Cops_sandu" post="73192" timestamp="1305909654"]

incearca sa stergi casa ta din

scriptfiles/Houses/[RsM]XpLoD.txt

da ca nu merge,am sa tac

Mai bine taci.

Trebuia sa mearga ce am zis eu ...

Posted

Pai ca sa mearga dai un rr la server si dupa te duci la casa ai sa vezi ca nu mai apare ca e a ta

pe mne ma intereseaza sa se updateze 3dtext-ul nu sa dau rr.

ll364l6j8dg3et84ks3w.png

Posted

xplod nu ai vrea tu sa ne zici cum creezi aceste text-uri 3d ?

folosesti un streamer sau simplu Create3Dtextlabel ?

daca folosesti un streamer e si logic de ce nu iti merge Update3Dtextlabel

iar tu stuntman ce naiba zici acolo  :huh: dai /buy la casa si le schimba text-ul la toate =)) ?

tLYRl.gif
Posted

RuNix" post="73347" timestamp="1305977380"]

iar tu stuntman ce naiba zici acolo  :huh: dai /buy la casa si le schimba text-ul la toate =)) ?

M-am grabit, ii corectasem prin TeamViewer ... dar tot nu-i merge.
Posted

RuNix" post="73347" timestamp="1305977380"]

xplod nu ai vrea tu sa ne zici cum creezi aceste text-uri 3d ?

folosesti un streamer sau simplu Create3Dtextlabel ?

daca folosesti un streamer e si logic de ce nu iti merge Update3Dtextlabel

iar tu stuntman ce naiba zici acolo  :huh: dai /buy la casa si le schimba text-ul la toate =)) ?

Asta am in ladmin ce are legatura cu 3DText

AddHouse(houseid, Float:iconX, Float:iconY, Float:iconZ, Float:interiorX, Float:interiorY, Float:interiorZ, Costa, Sella, Interiora, virtualworld)
{
        new house[256];
        format(house, sizeof(house), "Houses/houseid%d",houseid);
        if(!dini_Exists(house))
        {
        dini_Create(house);
        format(hInfo[houseid][Name], 24, "ForSale");
        dini_Set(house, "Name", "ForSale");
        format(hInfo[houseid][Renter], 24, "ForRent");
        dini_Set(house, "Renter", "ForRent");
        hInfo[houseid][Rentable] = 0;
        dini_IntSet(house, "Rentable", 0);
        hInfo[houseid][Rentcost] = 0;
        dini_IntSet(house, "Rentcost", 0);
        hInfo[houseid][Cost] = Costa;
        dini_IntSet(house, "Cost", Costa);
        hInfo[houseid][Sell] = Sella;
        dini_IntSet(house, "Sell", Sella);
        hInfo[houseid][Interior2] = Interiora;
        dini_IntSet(house, "Interior", Interiora);
        dini_IntSet(house, "Virtualworld", virtualworld);
        hInfo[houseid][Virtualworld] = virtualworld;
        hInfo[houseid][Locked] = 1;
        dini_IntSet(house, "Locked", 1);
        hInfo[houseid][Interior2X] = interiorX;
        hInfo[houseid][Interior2Y] = interiorY;
        hInfo[houseid][Interior2Z] = interiorZ;
        dini_FloatSet(house, "X", interiorX);
        dini_FloatSet(house, "Y", interiorY);
        dini_FloatSet(house, "Z", interiorZ);
        dini_IntSet(house, "RentPay", 0);
        dini_IntSet(house, "RentGet", 0);
        print("-");
        print("--------------House Created--------------");
        printf("- Houseid: %d", houseid);
        printf("- Buy Cost: %d", Costa);
        printf("- Sell Cost: %d", Sella);
        printf("- Interior: %d", Interiora);
        printf("- VirtualWorld: %d", virtualworld);
        print("-----------------------------------------");
        print("-");
        }
        else
        {
        format(hInfo[houseid][Name], 24, dini_Get(house, "Name"));
        format(hInfo[houseid][Renter], 24, dini_Get(house, "Renter"));
        hInfo[houseid][Rentable] = dini_Int(house, "Rentable");
        hInfo[houseid][Rentcost] = dini_Int(house, "Rentcost");
        hInfo[houseid][Cost] = dini_Int(house, "Cost");
        hInfo[houseid][Sell] = dini_Int(house, "Sell");
        hInfo[houseid][Interior2] = dini_Int(house, "Interior");
        hInfo[houseid][Locked] = dini_Int(house, "Locked");
        hInfo[houseid][Interior2X] = dini_Float(house, "X");
        hInfo[houseid][Interior2Y] = dini_Float(house, "Y");
        hInfo[houseid][Interior2Z] = dini_Float(house, "Z");
        hInfo[houseid][Virtualworld] = dini_Int(house, "Virtualworld");
        }
        hInfo[houseid][iconx]=iconX;
        hInfo[houseid][icony]=iconY;
        hInfo[houseid][iconz]=iconZ;
        format(house, sizeof(house), "Houses/houseid%d",houseid);
        if(strcmp(hInfo[houseid][Name],"ForSale",true)==0)
        {
        HousePickup[houseid] = CreatePickup(19135, 23, iconX, iconY, iconZ);//not bought
        }
        else
        {
        HousePickup[houseid] = CreatePickup(19135,23, iconX, iconY, iconZ);//bought
        }
        new string[256];
		format(string, 256, "Proprietar: {FFAF00}%s\n{FFFFFF}Cost:  {00C0FF}%i", hInfo[houseid][Name],hInfo[houseid][Cost]);
   	 	hInfo[houseid][house3d] = CreateDynamic3DTextLabel(string,0xFFFFFFFF,iconX, iconY, iconZ,250.0);
}
BUY & SELL
dcmd_sell(playerid, params[])
{
        if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,red,"ERROR: You must be logged in to use this commands");

	    #pragma unused params
        new str[255],str1[256],pname[24],housenumber;
        housenumber = GetHouseID(playerid);
        GetPlayerName(playerid, pname, 24);
        format(str1, sizeof(str1), "Houses/houseid%d", housenumber);
        if (strcmp(hInfo[housenumber][Name],pname,false || IsPlayerAdmin(playerid))) return SendClientMessage(playerid, c_r, "This house is not yours!");
        SendClientMessage(playerid, c_y, "You sold the house!");
        format(str, sizeof(str), "%s He left home with id %d",pname,housenumber);
        print(str);
        GivePlayerMoney(playerid, hInfo[housenumber][Sell]);
        dini_Set(str1, "Name", "ForSale");
        hInfo[housenumber][Locked] = dini_IntSet(str1,"Locked",1);
        format(hInfo[housenumber][Name],255,"ForSale");
        format(str1, sizeof(str1), "Houses/Users/%s", udb_encode(pname));
        if (!dini_Exists(str1)) dini_Create(str1);
        dini_IntSet(str1, "Houseid", -255);

	    format(str1, 256, "Proprietar: {FFAF00}For Sale\n{FFFFFF}Cost:  {00C0FF}%i", hInfo[housenumber][Cost]);
	    Update3DTextLabelText(hInfo[housenumber][house3d],0xFFFFFFFF,str1);
	    
		DestroyPickup(HousePickup[housenumber]);
        HousePickup[housenumber] = CreatePickup(19135, 23, hInfo[housenumber][iconx], hInfo[housenumber][icony], hInfo[housenumber][iconz]);
        RemovePlayerMapIcon(playerid, housemapicon[playerid]);
        return 1;
}

dcmd_buy(playerid, params[])
{
        #pragma unused params
        new str[255],str1[255],pname[24], housenumber;
        housenumber = GetHouseID(playerid);
        if(housenumber == -1) return SendClientMessage(playerid, c_r, "There are not house icon!");

        GetPlayerName(playerid, pname, 24);
        format(str1, sizeof(str1), "Houses/Users/%s", udb_encode(pname));
        if(dini_Exists(str1))
        {
        if (dini_Int(str1, "Houseid")!=-255) return SendClientMessage(playerid, c_r, "You have a house! /sell to let old house!");
        }
        format(str1, sizeof(str1), "Houses/houseid%d", housenumber);
        if (strcmp(hInfo[housenumber][Name],"ForSale",true)) return SendClientMessage(playerid, c_r, "This house is already bought!");
        if(GetPlayerScore(playerid)<hInfo[housenumber][Cost]) return SendClientMessage(playerid, c_r, "Do not have enough Score!");
        SendClientMessage(playerid, c_y, "You bought this house!");
        format(str, sizeof(str), "%s bought the house with id 0",pname);
        print(str);
        SetPlayerScore(playerid,GetPlayerScore(playerid)-hInfo[housenumber][Cost]);
        dini_Set(str1, "Name", pname);
        hInfo[housenumber][Name]=pname;
        hInfo[housenumber][Locked] = dini_IntSet(str1,"Incuiat",0);

        format(str1, sizeof(str1), "Houses/Users/%s", udb_encode(pname));
        if (!dini_Exists(str1)) dini_Create(str1);
        new Float:sy, Float:sx, Float:sz;
        dini_IntSet(str1, "Houseid", housenumber);
        if(!dini_Isset(str1,"Rentid"))
        {
        dini_IntSet(str1, "Rentid", -255);
        }
        GetPlayerPos(playerid, sx,sy,sz);
        dini_FloatSet(str1, "SpawnX", sx);
        dini_FloatSet(str1, "SpawnY", sy);
        dini_FloatSet(str1, "SpawnZ", sz);
        dini_IntSet(str1, "SpawnInt", GetPlayerInterior(playerid));
        new string[ 256 ];
		format(string, 256, "Proprietar: {FFAF00}%s\n{FFFFFF}Cost:  {00C0FF}%i", hInfo[housenumber][Name],hInfo[housenumber][Cost]);
	   	Update3DTextLabelText(hInfo[housenumber][house3d],0xFFFFFFFF,string);
        DestroyPickup(HousePickup[housenumber]);
		HousePickup[housenumber] = CreatePickup(19135, 23, hInfo[housenumber][iconx], hInfo[housenumber][icony], hInfo[housenumber][iconz]);
		return 1;
}

iar la inceput la enum HouseInfo am " Text3D:house3d "

atat am... si cand dau /buy nu se schimba Text3d-ul.. si lafel si la /sell.

ll364l6j8dg3et84ks3w.png

Posted

Asta am in ladmin ce are legatura cu 3DText

AddHouse(houseid, Float:iconX, Float:iconY, Float:iconZ, Float:interiorX, Float:interiorY, Float:interiorZ, Costa, Sella, Interiora, virtualworld)
{
        new house[256];
        format(house, sizeof(house), "Houses/houseid%d",houseid);
        if(!dini_Exists(house))
        {
        dini_Create(house);
        format(hInfo[houseid][Name], 24, "ForSale");
        dini_Set(house, "Name", "ForSale");
        format(hInfo[houseid][Renter], 24, "ForRent");
        dini_Set(house, "Renter", "ForRent");
        hInfo[houseid][Rentable] = 0;
        dini_IntSet(house, "Rentable", 0);
        hInfo[houseid][Rentcost] = 0;
        dini_IntSet(house, "Rentcost", 0);
        hInfo[houseid][Cost] = Costa;
        dini_IntSet(house, "Cost", Costa);
        hInfo[houseid][Sell] = Sella;
        dini_IntSet(house, "Sell", Sella);
        hInfo[houseid][Interior2] = Interiora;
        dini_IntSet(house, "Interior", Interiora);
        dini_IntSet(house, "Virtualworld", virtualworld);
        hInfo[houseid][Virtualworld] = virtualworld;
        hInfo[houseid][Locked] = 1;
        dini_IntSet(house, "Locked", 1);
        hInfo[houseid][Interior2X] = interiorX;
        hInfo[houseid][Interior2Y] = interiorY;
        hInfo[houseid][Interior2Z] = interiorZ;
        dini_FloatSet(house, "X", interiorX);
        dini_FloatSet(house, "Y", interiorY);
        dini_FloatSet(house, "Z", interiorZ);
        dini_IntSet(house, "RentPay", 0);
        dini_IntSet(house, "RentGet", 0);
        print("-");
        print("--------------House Created--------------");
        printf("- Houseid: %d", houseid);
        printf("- Buy Cost: %d", Costa);
        printf("- Sell Cost: %d", Sella);
        printf("- Interior: %d", Interiora);
        printf("- VirtualWorld: %d", virtualworld);
        print("-----------------------------------------");
        print("-");
        }
        else
        {
        format(hInfo[houseid][Name], 24, dini_Get(house, "Name"));
        format(hInfo[houseid][Renter], 24, dini_Get(house, "Renter"));
        hInfo[houseid][Rentable] = dini_Int(house, "Rentable");
        hInfo[houseid][Rentcost] = dini_Int(house, "Rentcost");
        hInfo[houseid][Cost] = dini_Int(house, "Cost");
        hInfo[houseid][Sell] = dini_Int(house, "Sell");
        hInfo[houseid][Interior2] = dini_Int(house, "Interior");
        hInfo[houseid][Locked] = dini_Int(house, "Locked");
        hInfo[houseid][Interior2X] = dini_Float(house, "X");
        hInfo[houseid][Interior2Y] = dini_Float(house, "Y");
        hInfo[houseid][Interior2Z] = dini_Float(house, "Z");
        hInfo[houseid][Virtualworld] = dini_Int(house, "Virtualworld");
        }
        hInfo[houseid][iconx]=iconX;
        hInfo[houseid][icony]=iconY;
        hInfo[houseid][iconz]=iconZ;
        format(house, sizeof(house), "Houses/houseid%d",houseid);
        if(strcmp(hInfo[houseid][Name],"ForSale",true)==0)
        {
        HousePickup[houseid] = CreatePickup(19135, 23, iconX, iconY, iconZ);//not bought
        }
        else
        {
        HousePickup[houseid] = CreatePickup(19135,23, iconX, iconY, iconZ);//bought
        }
        new string[256];
		format(string, 256, "Proprietar: {FFAF00}%s\n{FFFFFF}Cost:  {00C0FF}%i", hInfo[houseid][Name],hInfo[houseid][Cost]);
   	 	hInfo[houseid][house3d] = CreateDynamic3DTextLabel(string,0xFFFFFFFF,iconX, iconY, iconZ,250.0);
}
BUY & SELL
dcmd_sell(playerid, params[])
{
        if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,red,"ERROR: You must be logged in to use this commands");

	    #pragma unused params
        new str[255],str1[256],pname[24],housenumber;
        housenumber = GetHouseID(playerid);
        GetPlayerName(playerid, pname, 24);
        format(str1, sizeof(str1), "Houses/houseid%d", housenumber);
        if (strcmp(hInfo[housenumber][Name],pname,false || IsPlayerAdmin(playerid))) return SendClientMessage(playerid, c_r, "This house is not yours!");
        SendClientMessage(playerid, c_y, "You sold the house!");
        format(str, sizeof(str), "%s He left home with id %d",pname,housenumber);
        print(str);
        GivePlayerMoney(playerid, hInfo[housenumber][Sell]);
        dini_Set(str1, "Name", "ForSale");
        hInfo[housenumber][Locked] = dini_IntSet(str1,"Locked",1);
        format(hInfo[housenumber][Name],255,"ForSale");
        format(str1, sizeof(str1), "Houses/Users/%s", udb_encode(pname));
        if (!dini_Exists(str1)) dini_Create(str1);
        dini_IntSet(str1, "Houseid", -255);

	    format(str1, 256, "Proprietar: {FFAF00}For Sale\n{FFFFFF}Cost:  {00C0FF}%i", hInfo[housenumber][Cost]);
	    Update3DTextLabelText(hInfo[housenumber][house3d],0xFFFFFFFF,str1);
	    
		DestroyPickup(HousePickup[housenumber]);
        HousePickup[housenumber] = CreatePickup(19135, 23, hInfo[housenumber][iconx], hInfo[housenumber][icony], hInfo[housenumber][iconz]);
        RemovePlayerMapIcon(playerid, housemapicon[playerid]);
        return 1;
}

dcmd_buy(playerid, params[])
{
        #pragma unused params
        new str[255],str1[255],pname[24], housenumber;
        housenumber = GetHouseID(playerid);
        if(housenumber == -1) return SendClientMessage(playerid, c_r, "There are not house icon!");

        GetPlayerName(playerid, pname, 24);
        format(str1, sizeof(str1), "Houses/Users/%s", udb_encode(pname));
        if(dini_Exists(str1))
        {
        if (dini_Int(str1, "Houseid")!=-255) return SendClientMessage(playerid, c_r, "You have a house! /sell to let old house!");
        }
        format(str1, sizeof(str1), "Houses/houseid%d", housenumber);
        if (strcmp(hInfo[housenumber][Name],"ForSale",true)) return SendClientMessage(playerid, c_r, "This house is already bought!");
        if(GetPlayerScore(playerid)<hInfo[housenumber][Cost]) return SendClientMessage(playerid, c_r, "Do not have enough Score!");
        SendClientMessage(playerid, c_y, "You bought this house!");
        format(str, sizeof(str), "%s bought the house with id 0",pname);
        print(str);
        SetPlayerScore(playerid,GetPlayerScore(playerid)-hInfo[housenumber][Cost]);
        dini_Set(str1, "Name", pname);
        hInfo[housenumber][Name]=pname;
        hInfo[housenumber][Locked] = dini_IntSet(str1,"Incuiat",0);

        format(str1, sizeof(str1), "Houses/Users/%s", udb_encode(pname));
        if (!dini_Exists(str1)) dini_Create(str1);
        new Float:sy, Float:sx, Float:sz;
        dini_IntSet(str1, "Houseid", housenumber);
        if(!dini_Isset(str1,"Rentid"))
        {
        dini_IntSet(str1, "Rentid", -255);
        }
        GetPlayerPos(playerid, sx,sy,sz);
        dini_FloatSet(str1, "SpawnX", sx);
        dini_FloatSet(str1, "SpawnY", sy);
        dini_FloatSet(str1, "SpawnZ", sz);
        dini_IntSet(str1, "SpawnInt", GetPlayerInterior(playerid));
        new string[ 256 ];
		format(string, 256, "Proprietar: {FFAF00}%s\n{FFFFFF}Cost:  {00C0FF}%i", hInfo[housenumber][Name],hInfo[housenumber][Cost]);
	   	Update3DTextLabelText(hInfo[housenumber][house3d],0xFFFFFFFF,string);
        DestroyPickup(HousePickup[housenumber]);
		HousePickup[housenumber] = CreatePickup(19135, 23, hInfo[housenumber][iconx], hInfo[housenumber][icony], hInfo[housenumber][iconz]);
		return 1;
}

iar la inceput la enum HouseInfo am " Text3D:house3d "

atat am... si cand dau /buy nu se schimba Text3d-ul.. si lafel si la /sell.

Se pare ca a avut dreptate Runix, schimba Update3DTextLabelText cu UpdateDynamic3DTextLabelText, cat m-am chinuit si nu am vazut asta xD

EDIT: Al 2500-lea meu post.

Posted

eroare cand am schimbat

error 076: syntax error in the expression, or invalid function call

warning 215: expression has no effect

ll364l6j8dg3et84ks3w.png

Posted

streamerul foloseste CreatePlayer3DTextLabel nu Create3DTextLabel :)

dar fiind un streamer...id-urile la text-uri se schimba de fiecare data cand te duci in alt loc cu alte text-uri 3d :)

Rezolvare :)

la AddHouse lasa asa cum este,

la /sell in loc de

format(str1, 256, "Proprietar: {FFAF00}For Sale\n{FFFFFF}Cost:  {00C0FF}%i", hInfo[housenumber][Cost]);
Update3DTextLabelText(hInfo[housenumber][house3d],0xFFFFFFFF,str1);
pune
DestroyDynamic3DTextLabel(hInfo[housenumber][house3d]);
format(str1, 256, "Proprietar: {FFAF00}For Sale\n{FFFFFF}Cost:  {00C0FF}%i", hInfo[housenumber][Cost]);
hInfo[housenumber][house3d] = CreateDynamic3DTextLabel(str1,0xFFFFFFFF,iconX, iconY, iconZ,250.0);

iar la buy la fel ca la /sell doar ca pui string-uri diferite  :smiley:

Apoi testeaza si spune 'Multumesc'  :laugh:

tLYRl.gif
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.