Sell scrap for RP? 100:1 ratio

I'm trying to setup a sell price for Scrap, 100:1, basically 100 scrap = 1RP but I'm unable to get the correct price to do it. I did set the scrap price of 0.01 but it only accepts 101 scrap to able to sell for 1RP, otherwise 100 results in 0 RP. Also if I sell over 101, lets say 130 scrap, it takes all of it without the deduction for 1RP. 

Is there anyway I can get this to work ? I've seen this kind of sell method on other RP server,  which also uses ServerRewards.

I was getting this same error on my server. After investigation, the root cause appears to be a type issue within ServerRewards.cs at line 3812. When the price variable is declared, it is typed as a float, when C# is wanting a double. Simply replace the float in line 3812 with double.
Original 3812: public double price = 0;
Fix 3812: public double price = 0;

mdan84

I was getting this same error on my server. After investigation, the root cause appears to be a type issue within ServerRewards.cs at line 3812. When the price variable is declared, it is typed as a float, when C# is wanting a double. Simply replace the float in line 3812 with double.
Original 3812: public double price = 0;
Fix 3812: public double price = 0;

you're a life saver. Will test this. Thank you!