SA-MP Forums Archive
[HELP] Update3dTextdraw & Delete3dTextdraw Not Working - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Update3dTextdraw & Delete3dTextdraw Not Working (/showthread.php?tid=135327)



[HELP] Update3dTextdraw & Delete3dTextdraw Not Working - CuervO - 20.03.2010

I have updated the pickups to custom 3d Textdraws... Everything Went well but when i am trying to update the text when the house is owned, nothing happens... i've tried using Update3dtextdraw, nothing happens... also i've tried using Delete3dTextdraw, nothing happens... could anyone help me?


There is the Update Code:


pawn Код:
public OnPropTextdrawUpdate()
{
    new PropertyString[128];
    for(new h = 0; h < sizeof(HouseInfo); h++)
    {
        if(HouseInfo[h][hOwned] == 0)
        {
            Delete3DTextLabel(HouseLabel);
          format(PropertyString,sizeof(PropertyString),"House is UNOWNED! \n House ID: %d \n Price: $%d \n Description: %s \n Level Needed: %d",HouseInfo[h][hWorld], HouseInfo[h][hValue],HouseInfo[h][hDiscription], HouseInfo[h][hLevel]);
            HouseLabel = Create3DTextLabel(PropertyString ,0x00FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],10, 0);
        }
        if(HouseInfo[h][hOwned] == 1)
        {
          Delete3DTextLabel(HouseLabel);
            format(PropertyString,sizeof(PropertyString),"House is Owned by %s \n House ID: %d \n Rent Price: $%d \n Level: %d \n To Rent Type /rentroom", HouseInfo[h][hOwner],HouseInfo[h][hWorld], HouseInfo[h][hRentabil], HouseInfo[h][hLevel]);
            HouseLabel = Create3DTextLabel(PropertyString ,0x00FFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],10, 0);
        }
    }
    for(new h = 0; h < sizeof(BizzInfo); h++)
    {
        if(BizzInfo[h][bOwned] == 0)
        {
          Delete3DTextLabel(BizzLabel);
          format(PropertyString,sizeof(PropertyString),"Bizz is Unowned! \n Price: $%d \n Level Needed: %d \n To Buy This Bizz, Type /buybizz", BizzInfo[h][bBuyPrice], BizzInfo[h][bLevelNeeded]);
            BizzLabel = Create3DTextLabel(PropertyString ,0x00FF00FF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],10, 0);
        }
        if(BizzInfo[h][bOwned] == 1)
        {
          Delete3DTextLabel(BizzLabel);
            format(PropertyString,sizeof(PropertyString),"%s \n Owner: %s \n Extortion: %s \n Entering Fee: $%d. \n To Enter This Bizz type /enter.",BizzInfo[h][bMessage],BizzInfo[h][bOwner], BizzInfo[h][bExtortion], BizzInfo[h][bEntranceCost]);
            BizzLabel = Create3DTextLabel(PropertyString ,0x00FFFFFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],10, 0);
        }
    }
    for(new h = 0; h < sizeof(SBizzInfo); h++)
    {
        if(SBizzInfo[h][sbOwned] == 0)
        {
          Delete3DTextLabel(SBizzLabel);
            format(PropertyString,sizeof(PropertyString),"Bizz is Unowned! \n Price: $%d \n Level Needed: %d \n To Buy This Bizz, Type /buybizz", SBizzInfo[h][sbBuyPrice], SBizzInfo[h][sbLevelNeeded]);
            SBizzLabel = Create3DTextLabel(PropertyString ,0x00FF00FF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],10, 0);
        }
        if(SBizzInfo[h][sbOwned] == 1)
        {
          Delete3DTextLabel(SBizzLabel);
            format(PropertyString,sizeof(PropertyString),"%s \n Owner: %s \n Extortion: %s \n Entering Fee: $%d. \n To Enter This Bizz type /enter.",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner], SBizzInfo[h][sbExtortion], BizzInfo[h][bEntranceCost]);
            SBizzLabel = Create3DTextLabel(PropertyString ,0x00FFFFFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],10, 0);
        }
    }
    return 1;
}

Very Thankfully <3


Re: [HELP] Update3dTextdraw & Delete3dTextdraw Not Working - CuervO - 20.03.2010

Ermmm, 12 Hours passed


Re: [HELP] Update3dTextdraw & Delete3dTextdraw Not Working - CuervO - 21.03.2010

Hello, anybody could please help me?


Re: [HELP] Update3dTextdraw & Delete3dTextdraw Not Working - InsaneESN - 26.04.2010

Hi, using Raven's PR .. how to remove the text "House is Unowned / Owned ... - Bizz is unowned / owned .. " the blue / green text


Re: [HELP] Update3dTextdraw & Delete3dTextdraw Not Working - Steven82 - 26.04.2010

Quote:
Originally Posted by InsaneESN
Hi, using Raven's PR .. how to remove the text "House is Unowned / Owned ... - Bizz is unowned / owned .. " the blue / green text
Why would you?