Lottery Script
#1

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
Reply
#2

You should post this at script request topic.
Reply
#3

Is that all you every say
Reply
#4

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

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
Reply
#6

Yes, witch it a bit. That might help.
Reply
#7

lol its not good Script
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)