rizkiolivia
New member
Help me cooding how to change 1 proof of donation to 1000 cash points??
https://github.com/d...points2item.txt
https://github.com/d...points2item.txt
.rate = 1000; <<< for PoDs.. if 1000 PoDs only 1 cash points..rate = 1000; // Exchange rate (1 point * rate = total PoDs)
input .@amount;
if (.rate > 0) {
.@total = .@amount / .rate;
.@remainder = .@amount % .rate;
} else {
.@total = .@amount * .rate * -1;
}
OTHER CODE HERE
.rate = -1000; // if rate < 0 than total = amount * rate
We use essential cookies to make this site work, and optional cookies to enhance your experience.