Jump to content

Hey Can Sum1 Help Me out


Marty-Bond

Recommended Posts

This works but dosent take or subtract cash just stays the same and if u buy over how much u have it says -50000 is their a way to fix this?

if $3 == !buyWeed {

if $rpg.area($1,$2) == Ocean-View {

if $rpg.cash($1,$2) > 0 ($calc($readini(rpg.ini,balance,$mta.name($1,$2))) < $readini(stockdata.ini,Weedcost,Weedcost)) {

!writeini -n $+("rpg.ini") cash $mta.name($1,$2), cash $calc($readini(stockdata.ini,balance,$mta.name($1,$2)) - $readini(stockdata.ini,weedcost,weedcost)))}

!writeini -n $+("stockdata.ini") Weedamount $mta.name($1,$2) $calc($readini(stockdata.ini,Weedamount,$mta.name($1,$2))+1))}

mta.msg $1 $2 $mta.name($1,$2) Has $readini(stockdata.ini,Weedamount,$mta.name($1,$2)) Ounches Of Weed.

}

else mta.say $1 You Dont Have Enough Money For Weed

}

else mta.say $1 You Must Be At Ocean-View To Buy Weed

}

if ($3 == !sellWeed) {

if $rpg.area($1,$2) == Malibu {

if ($readini(stockdata.ini,weedstash,$mta.name($1,$2))) < 1) {

!writeini -n $+("rpg.ini") balance $mta.name($1,$2) Cash $calc($readini(rpg.ini,balance,$mta.name($1,$2)) + $readini(stockdata.ini,Weedcost,Weedcost)))}

!writeini -n $+("stockdata.ini") Stash $mta.name($1,$2) $calc($readini(rpg.ini,WeedStash,$mta.name($1,$2)) - $readini(stockdata.ini,stash,stash)))}

!writeini -n $+("stockdata.ini") weedamount $mta.name($1,$2) $calc($readini(stockdata.ini,weedamount,$mta.name($1,$2)) - $readini(stockdata.ini,stash,stash)))}

mta.say $1 $2 $mta.name($1,$2) Has Sold Every Ounches of Weed.

}

else mta.say $1 You Dont Have Any Weed To Sell

}

else mta.say $1 You Must Be At Malibu To Sell Weed

}

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...