Random giving 0 all the time.
#1

Hey again. Well, too many questions today yeah. Sorry for that.

I am keeping with my poker, and i want it to give 2 cards, both random between number 1 and 13, and types, between 4 types. I did this, but it sets everything to 0 all the time.

pawn Код:
new randcard = random(13);
new randtype = random(4);

PokerPlayerInfo[PokerCardsInfo[P1]][Card1] = randcard;
PokerPlayerInfo[PokerCardsInfo[P1]][Card2] = randcard;
PokerPlayerInfo[PokerCardsInfo[P1]][Card1T] = randtype;
PokerPlayerInfo[PokerCardsInfo[P1]][Card2T] = randtype;
Reply


Messages In This Thread
Random giving 0 all the time. - by ricardo178 - 27.07.2012, 13:52
Re: Random giving 0 all the time. - by Vince - 27.07.2012, 14:15
Re : Re: Random giving 0 all the time. - by ricardo178 - 27.07.2012, 15:18

Forum Jump:


Users browsing this thread: 1 Guest(s)