20.12.2009, 11:43
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
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;
}