LoadBizz(Big Problem)
#10

Quote:
Originally Posted by admantis
Посмотреть сообщение
I suggest you read the basic scripting documentation before getting deep into loading and saving data before you even know how to indent your code properly and how brackets work.
^^^^^^^^^ THIS ^^^^^^^^^^^^^^


Stop using the GodFather Edit, not a good script for beginners.

Proof: This was taken straight from Raven's Roleplay. All I see you changed was the the language to Romanian.
pawn Код:
for(new h = 0; h < sizeof(HouseInfo); h++)
    {
        if(HouseInfo[h][hSetted] == 1)
        {
            if(HouseInfo[h][hOwned] == 0)
            {
                if(HouseInfo[h][hSetted] == 1)
                {
                    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[h] = Create3DTextLabel(PropertyString ,0x00FF00AA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
                    HousePickup[h] = CreateDynamicPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
                }
            }
            else if(HouseInfo[h][hOwned] == 1)
            {
                format(PropertyString,sizeof(PropertyString),"%s \n Owner: %s \n House ID: %d \n Rent Price: $%d \n Description: %s \n To Rent Type /rentroom",HouseInfo[h][hMessage],HouseInfo[h][hOwner],HouseInfo[h][hWorld], HouseInfo[h][hRent], HouseInfo[h][hDiscription]);
                HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FFFFAA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
                HousePickup[h] = CreateDynamicPickup(1272, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            }
        }
    }
Reply


Messages In This Thread
LoadBizz(Big Problem) - by Dan_Barocu - 17.03.2012, 01:16
Respuesta: LoadBizz(Big Problem) - by admantis - 17.03.2012, 01:21
Re: LoadBizz(Big Problem) - by AustinJ - 17.03.2012, 01:22
Re: LoadBizz(Big Problem) - by ReneG - 17.03.2012, 01:24
Respuesta: LoadBizz(Big Problem) - by admantis - 17.03.2012, 01:25
Re: LoadBizz(Big Problem) - by Dan_Barocu - 17.03.2012, 01:31
Re: Respuesta: LoadBizz(Big Problem) - by Dan_Barocu - 17.03.2012, 01:37
Re: LoadBizz(Big Problem) - by Dan_Barocu - 17.03.2012, 14:43
Respuesta: LoadBizz(Big Problem) - by admantis - 17.03.2012, 14:46
Re: Respuesta: LoadBizz(Big Problem) - by ReneG - 17.03.2012, 14:52

Forum Jump:


Users browsing this thread: 2 Guest(s)