27.07.2012, 13:52
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.
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;