House System Help
#2

pawn Код:
if(HouseInfo[iIndex][hLevel] != 0)
        {
            if(HouseInfo[iIndex][hOwned])
            {
                if(HouseInfo[iIndex][hRentable] == 0) format(szFileStr, sizeof(szFileStr), "House owner: %s\n%d, Los Santos",HouseInfo[iIndex][hOwner],HouseInfo[iIndex][hLevel],iIndex);
                else format(szFileStr, sizeof(szFileStr), "House owner: %s\nAddress: %d, Los Santos\nRent: $%d\nType /rentroom to rent a room",HouseInfo[iIndex][hOwner],iIndex,HouseInfo[iIndex][hRentFee]);
                 HouseInfo[iIndex][hPickupID] = CreatePickup(1272, 23, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ], -1);
            }
            else
            {
              format(szFileStr, sizeof(szFileStr), "This house is for sale!\nAddress: %d, Los Santos\nPrice: $%d\nTo buy this house type /buyhouse",HouseInfo[iIndex][hLevel],iIndex,HouseInfo[iIndex][hValue]);
               HouseInfo[iIndex][hPickupID] = CreatePickup(1273, 23, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ], -1);
            }
            HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_HOUSEGREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 10.0);
        }
        ++iIndex;
    }
    return fclose(iFileHandle);
}
Reply


Messages In This Thread
House System Help - by conor565 - 11.06.2013, 18:30
Re: House System Help - by Aly - 11.06.2013, 21:13
Re: House System Help - by conor565 - 12.06.2013, 17:09

Forum Jump:


Users browsing this thread: 1 Guest(s)