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


Messages In This Thread
How to update 3D text label - by DarkPower - 17.05.2010, 17:28
Re: How to update 3D text label - by Anwix - 17.05.2010, 17:35
Re: How to update 3D text label - by DarkPower - 17.05.2010, 17:38

Forum Jump:


Users browsing this thread: 1 Guest(s)