SA-MP Forums Archive
Lottery Script - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Lottery Script (/showthread.php?tid=100097)



Lottery Script - Kyle - 02.10.2009

I have my lottery script which i made and i want it so if somone has already got the number there not allowed to place the lottery

Heres is my code

http://pastebin.com/m7f2727e9


Re: Lottery Script - Correlli - 02.10.2009

You should post this at script request topic.


Re: Lottery Script - Kyle - 02.10.2009

Is that all you every say


Re: Lottery Script - Correlli - 02.10.2009

You're REQUESTING a code, so post in the script request topic. That topic is created for a reason.


Re: Lottery Script - Pawno_Master - 02.10.2009

You have this line

30. Lottery[playerid] = lotto;

if you look good at it and witch it a bit than maybe you can get out yourself


Re: Lottery Script - Brendan_Thomson - 02.10.2009

Yes, witch it a bit. That might help.


Re: Lottery Script - James_Coral - 17.06.2011

lol its not good Script


Re: Lottery Script - Babul - 17.06.2011

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;
}