xxclixxx
04-08-2008, 04:48 PM
Hey All
Ok, so when I reduced the surfing bonus to 5% for 150 and 175 surfing, I actually RAISED it to 50%.
I began tracking in detail where all credits are being earned, and I noticed a user had a 73% surfing bonus. I was shocked, as everyone else had a 23% bonus. But after checking the code carefully, I realized it changed when less were surfing. Rather than ".05" in the code there was a ".5".
So yet again, I had the bonuses all messed up. This isn't the first time I had the decimal off! So temporary fix, I've added very large comments to the code to remind me to double check. I'll probably come up with a better way in the future that does the decimals for me.
So there ya go
Tim
Ok, so when I reduced the surfing bonus to 5% for 150 and 175 surfing, I actually RAISED it to 50%.
I began tracking in detail where all credits are being earned, and I noticed a user had a 73% surfing bonus. I was shocked, as everyone else had a 23% bonus. But after checking the code carefully, I realized it changed when less were surfing. Rather than ".05" in the code there was a ".5".
So yet again, I had the bonuses all messed up. This isn't the first time I had the decimal off! So temporary fix, I've added very large comments to the code to remind me to double check. I'll probably come up with a better way in the future that does the decimals for me.
So there ya go
Tim