22.07.2012, 11:48
This does not even pick a number it dont get as far as sending the message
Please help
Please help
Thanks
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;
}
Thanks