Lottery Script
#8

the pastebin page is empty. anyways...
Код:
new LottoNumberChosen[MAX_LOTTO_NUMBERS];
Код:
OnPlayerPickLottoNumber(playerid,number)
{
	if(LottoNumberChosen[number]==0)
	{
		LottoNumberChosen[number]=1;
	}
}
at each lottery draw, it needs the array cleared indeed:
Код:
for(new n=0;n<MAX_LOTTO_NUMBERS;n++)
{
	LottoNumberChosen[n]=0;
}
Reply


Messages In This Thread
Lottery Script - by Kyle - 02.10.2009, 18:47
Re: Lottery Script - by Correlli - 02.10.2009, 18:49
Re: Lottery Script - by Kyle - 02.10.2009, 18:50
Re: Lottery Script - by Correlli - 02.10.2009, 19:04
Re: Lottery Script - by Pawno_Master - 02.10.2009, 19:13
Re: Lottery Script - by Brendan_Thomson - 02.10.2009, 19:29
Re: Lottery Script - by James_Coral - 17.06.2011, 12:11
Re: Lottery Script - by Babul - 17.06.2011, 13:39

Forum Jump:


Users browsing this thread: 1 Guest(s)