How to check a random number
#6

Quote:
Originally Posted by [MM]RoXoR[FS]
View Post
Explain more.
This does not even pick a number it dont get as far as sending the message

Please help

pawn Code:
new lotto = random(Player[i][RaffleTicket]);
                new Winnings = Player[i][JackPot];
                new string[128];
                if(lotto == Player[i][RaffleTicket])
                {
                    format(string, sizeof(string), "Congratulations %s has won the lottery of %d", GetNameNoUnderScore(i), Winnings);
                    SendClientMessageToAll(YELLOW, string);
                    format(string, sizeof(string), "Congratulations you have won the lottery of %d", Winnings);
                    SendClientMessage(i, YELLOW, string);
                    SendClientMessageToAll(YELLOW, "Remember to buy a another raffle ticket if you want to take part in the next lottery");
                    Player[i][RaffleTicket] = 0;
                    Player[i][Money] += Winnings;
                }
Please help

Thanks
Reply


Messages In This Thread
How to check a random number - by Euan Hughes - 21.07.2012, 22:42
Re: How to check a random number - by Euan Hughes - 22.07.2012, 00:32
Re: How to check a random number - by Euan Hughes - 22.07.2012, 11:06
Re: How to check a random number - by Euan Hughes - 22.07.2012, 11:43
Re: How to check a random number - by [MM]RoXoR[FS] - 22.07.2012, 11:45
Re: How to check a random number - by Euan Hughes - 22.07.2012, 11:48
Re: How to check a random number - by Babul - 22.07.2012, 11:52
Re: How to check a random number - by Euan Hughes - 22.07.2012, 11:56
Re: How to check a random number - by Euan Hughes - 22.07.2012, 15:41
Re: How to check a random number - by Babul - 23.07.2012, 08:44

Forum Jump:


Users browsing this thread: 1 Guest(s)