How to make this in label ?
#1

I want to make this in label like the pictures..

Pic1:


Pic2:



pawn Код:
if(HouseInfo[h][hOwned] == 0)
        {
            format(string1, sizeof(string), "[NA PRODAJU]\n$ %d",HouseInfo[h][hValue]);
            housesale = Create3DTextLabel(string1,0xFFFF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,15,0,1);
            AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            pickups++;
        }
        if(HouseInfo[h][hOwned] == 1)
        {
            /*format(string1, sizeof(string), "[OWNED BY]\n%s",HouseInfo[h][hOwner]);
            Create3DTextLabel(string1,0x006400FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,15,0,1);*/

            AddStaticPickup(1318, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            pickups++;
        }
    }
    for(new h = 0; h < sizeof(BizzInfo); h++)
    {
        if(BizzInfo[h][bOwned] == 0)
        {
            format(string1, sizeof(string), "[NA PRODAJU]\n$ %d",BizzInfo[h][bBuyPrice]);
            bizsale = Create3DTextLabel(string1,0xFFFF00FF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+1,15,0,1);
            AddStaticPickup(1272, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
            pickups++;
        }
        if(BizzInfo[h][bOwned] == 1)
        {
            /*format(string1, sizeof(string), "[OWNED BY]\n%s",BizzInfo[h][bOwner]);
            Create3DTextLabel(string1,0x8361FFFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+1,15,0,1);*/

            AddStaticPickup(1239, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
            pickups++;
        }
    }
    for(new h = 0; h < sizeof(SBizzInfo); h++)
    {
        if(SBizzInfo[h][sbOwned] == 0)
        {
            format(string1, sizeof(string), "[NA PRODAJU]\n$ %d",SBizzInfo[h][sbBuyPrice]);
            sbizsale = Create3DTextLabel(string1,0xFFFF00FF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+1,15,0,1);
            AddStaticPickup(1272, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
            pickups++;
        }
        if(SBizzInfo[h][sbOwned] == 1)
        {
            /*format(string1, sizeof(string), "[OWNED BY]\n%s",SBizzInfo[h][sbOwner]);
            Create3DTextLabel(string1,0x8361FFFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+1,15,0,1);*/

            AddStaticPickup(1239, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
            pickups++;
        }
    }
I tryed to move like this:

pawn Код:
if(HouseInfo[h][hOwned] == 0)
        {
            format(string1, sizeof(string1), "Kuca na prodaju!{F3FF02}\n Cijena: %d$\nOpis: %s\nAdresa: %s\nKupnja:/kupikucu",HouseInfo[h][hValue],HouseInfo[h][hDiscription]);
            housesale[h] = Create3DTextLabel(string1,0x0087AFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,20,0,1);
            pickups++;
        }
but i got errors so i need help about this.
Reply
#2

u want to create it on...?
Reply
#3

i want to create it like on picture or this..

pawn Код:
if(PlayerToPoint(2.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))
                    {
                        if(SBizzInfo[h][sbOwned] == 1)
                        {
                            format(string, sizeof(string), "~w~%s~g~~n~Vlasnik ~w~%s~n~Reket ima: %s~n~Cijena ulaza: $%d~n~~y~(/enter)",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost]);
                        }
                        else
                        {
                            format(string, sizeof(string), "~g~Na Prodaju~n~~w~%s~n~~w~$%d~n~%d Level~n~~y~(/buybiz)",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);
                        }
                        GameTextForPlayer(i, string, 5000, 3);
                        return 1;
                    }
                }
                for(new h = 0; h < sizeof(HouseInfo); h++)
                {
                    if(PlayerToPoint(2.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
                    {
                        if(HouseInfo[h][hOwned] == 1)
                        {
                            if(HouseInfo[h][hRentabil] == 0)
                            {
                                format(string, sizeof(string), "~g~Vlasnik~n~~w~%s~n~%d Level",HouseInfo[h][hOwner],HouseInfo[h][hLevel]);
                            }
                            else
                            {
                                format(string, sizeof(string), "~g~Vlasnik~n~~w~%s~n~Renta: $%d Level: %d~n~~y~(/rentroom)",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);
                            }
                            GameTextForPlayer(i, string, 5000, 3);
                            return 1;
                        }
                        else
                        {
                        format(string, sizeof(string), "Na prodaju! \nOpis: %s \nCijena: %d$ \nLevel: %d \nAdresa: %s \nZa kupnju /kupikucu",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);
                        }
                        GameTextForPlayer(i, string, 5000, 3);
                        return 1;
                    }
                }
                for(new h = 0; h < sizeof(BizzInfo); h++)
                {
                    if(IsATruck(tmpcar) && PlayerToPoint(10.0, i, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]))
                    {
                        format(string, sizeof(string), "~w~%s~n~~r~Potrebno produkata~w~: %d~n~~y~Cijena produkta: ~w~: $%d~n~~g~Novac: ~w~: $%d",BizzInfo[h][bMessage],(BizzInfo[h][bMaxProducts]-BizzInfo[h][bProducts]),BizzInfo[h][bPriceProd],BizzInfo[h][bTill]);
                        GameTextForPlayer(i, string, 5000, 3);
                        return 1;
                    }
                    if(PlayerToPoint(2.0, i, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]))
                    {
                        if(BizzInfo[h][bOwned] == 1)
                        {
                            format(string, sizeof(string), "~w~%s~g~~n~Vlasnik ~w~%s~n~Reket ima: %s~n~Cijena Ulaza: $%d ~n~~y~(/enter)",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bExtortion],BizzInfo[h][bEntranceCost]);
                        }
                        else
                        {
                            format(string, sizeof(string), "~g~Na Prodaju~n~~w~%s~n~~w~$%d~n~%d Level~n~~y~(/buybiz)",BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded]);
                        }
                        GameTextForPlayer(i, string, 5000, 3);
                        return 1;
                    }
                }
            }//custompickups end
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)