Hi guys, trying to get this to work, not sure if anyone can help but I’m trying to divide two static variables (integers) from separate scripts here.
I get the error: BCE0049: Expression ‘Money.MoneyCount / Prices.CostPrice’ cannot be assigned to.
static var AmountCanBuy : int;
var HasSlots : boolean;
function Purchase (){
if (CoatSlots.CoatSlots < CoatSlots.CoatSlotsMax){
HasSlots = true;
}
if (HasSlots == true){
Money.MoneyCount/Prices.CostPrice = AmountCanBuy;
}
}