SA-MP Forums Archive
Check is full house - 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)
+--- Thread: Check is full house (/showthread.php?tid=572288)



Check is full house - Banditukas - 26.04.2015

Hi,

I have a cards info in variable like:

new CardNames[ 8 ][ 50 ];

Код:
CardNames[ 0 ] = "2 Clubs";
CardNames[ 1 ] = "2 Diamonds";
CardNames[ 2 ] = "2 Heats";
CardNames[ 3 ] = "3 Diamonds";
CardNames[ 4 ] = "4 Diamonds";
CardNames[ 5 ] = "A Clubs";
CardNames[ 6 ] = "4 Heats";
CardNames[ 7 ] = "J Diamonds";
How you see here is full house

Код:
CardNames[ 0 ]
CardNames[ 1 ]
CardNames[ 2 ]
CardNames[ 3 ]
CardNames[ 4 ]
But card names are random and i just know that 8 cards i have to check and i have no idea how to check all combinations with all poker cards is there full house.