You should always bet the maximum of 5 coins in video poker in order to hit the jackpot of that game. The Royal Flush only pays if you have wagered the maximum 5 credits. If you have only wagered 1, 2 or 3 coins, the payout will be significantly lower. Check the paytable on the screen to know what you are betting for.