How to update 3D text label
#1

I make when player bouth house that create 3D text on pickup whit his name and thats work but only problem is when house is not buyed text is: HOUSE FOR SALE and when i buy house its still: HOUSE FOR SALE, only when i restart server then create my name if house is buyed, my question is how i can update this code
pawn Код:
if(strcmp(hInfo[houseid][Name],"ForSale",true)==0)
    {
        HousePickup[houseid] = CreatePickup(1273, 23, iconX, iconY, iconZ); // WHEN IS NOT buyed
        new string[256];
        format(string, sizeof string, "Ova kuca je na prodaju\nCijena: %d$", hInfo[houseid][Cost]);
        Create3DTextLabel(string,0x008080FF,hInfo[houseid][iconx]=iconX,hInfo[houseid][icony]=iconY,hInfo[houseid][iconz]=iconZ,40.0,0);
    }
    else
    {
        HousePickup[houseid] = CreatePickup(1273,23, iconX, iconY, iconZ); // THIS WILL CREATE WHEN IS HOUSE BUYED
        new string2[256];
        format(string2, sizeof string2, "Vlasnik: %s\nCijena: %d$", hInfo[houseid][Name],hInfo[houseid][Cost]);
        Create3DTextLabel(string2,0x008080FF,hInfo[houseid][iconx]=iconX,hInfo[houseid][icony]=iconY,hInfo[houseid][iconz]=iconZ,40.0,0);
       
    }
Reply
#2

When the player types /buyprop (or your own buy property command) you should use:

Код:
Update3DTextLabelText(Text3D:id, color, text[])
Reply
#3

ok i will try tnx for sugestion
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)