rfw2003 Posted December 1, 2006 Posted December 1, 2006 O.k. I am trying to code up a mod. I'm working on a lottery style Mod for a friend. I have it to the point that I can input the numbers into the DB, and a script that will randomly generate the numbers. I have been successful in compareing the numbers in the DB to the generated numbers to see if all numbers match, and if they do peform a my function. Where I'm having trouble is figureing out how to see if only 3,4 or 5 of the numbers match the generated numbers. Can anyone help with this???? R.F. Quote
UCC Posted December 2, 2006 Posted December 2, 2006 Re: Need some help Can't you just do a simple while loop with a counter. It loops through the numbers they chose and compares it to the array of winning numbers. It counts how many times there is a match and the reward is based on that counter. Quote
rfw2003 Posted December 2, 2006 Author Posted December 2, 2006 Re: Need some help I got it figured out. yes the loop and an extra column in the table is what I did, just before I came back in here. R.F. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.