Author Topic: Points ARE prizes  (Read 1038 times)

pingu2k4

  • Newbie
  • *
  • Posts: 3
    • View Profile
Points ARE prizes
« on: May 08, 2008, 08:44:20 PM »
im about to start operating a league, where the buyin is 2 from each player, and they play for league points. I want the top 9 to be paidpercentages of 200 times the number of people playing, and 50 points just for playing if they dont make the top 9. Ive got the formula, wasnt hard to write as im a computer programmer. the code im using is:

Code: [Select]
assign ("v", n*200),if (r > 9,50,if (r = 9,v*0.02,if (r = 8,v*0.03,if (r = 7,v*0.05,if (r = 6,v*0.07,if (r = 5,v*0.09,if(r = 4,v*0.12,if (r = 3,v*0.16,if (r = 2,v*0.20,v*0.26)))))))))
for the main screen, i have the positions and what each position wins at the bottom. Ive tried numerous techniques, but cant get the prizes to display how many points people get. this will only try showing how much cash they can receive, but they cant receive any :(

I would really like top know how to do this as i do know it can be done. many thanks, pingu :)

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5594
    • View Profile
Re: Points ARE prizes
« Reply #1 on: May 09, 2008, 10:30:48 AM »
Use the <pointsforplaying> token.

pingu2k4

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Points ARE prizes
« Reply #2 on: May 10, 2008, 11:36:13 AM »
yeah i found it out :P thanks for the help :)