house help
#1

hello i got maked random prices for my biz and house system
but it work for allhouses so all houses get same price
how can i make it for every house diferent

pawn Код:
public SellBusiness(businessid)
{
  strmid(BusinessInfo[businessid][bOwner], "For Sale", false, strlen("For Sale"), 16);
    BusinessInfo[businessid][bOwned] = 0;
    BusinessInfo[businessid][bLocked] = 0;
    BusinessInfo[businessid][bEnterPrice] = 0;
    BusinessInfo[businessid][bMoney] = 0;
    BusinessInfo[businessid][bNotUsed] = 0;
   
    RandomBizMoney = MinBizMoney+random(MaxBizMoney-MinBizMoney);
    BusinessInfo[businessid][bPrice] = RandomBizMoney;
    return 1;
}
Reply
#2

bump
if i use
pawn Код:
for(new i = 0; i <MAX_HOUSES; i++)
will it work ?
Reply
#3

pawn Код:
for(new i = 0; i <MAX_HOUSES; i++)
{
    RandomBizMoney = MinBizMoney+random(MaxBizMoney-MinBizMoney);
    BusinessInfo[i][bPrice] = RandomBizMoney;
}
Reply
#4

Bump dont work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)