This is the output for my poker hand evaluator.
The shapes are made using lines, rectangles and circles.
This is how id expect it too look
However when i have a Club, Spade or heart as the suit for the first card this is what i get at the output
Here is the code for drawing the Club:
Code:
gdImageString( gdImage, gdFontGetGiant(), (80+(WordLineUpX*140)), (55+(WordLineUpY*195)), "Clubs", black );
gdImageString( gdImage, gdFontGetGiant(), (50+(WordLineUpX*140)), (175+(WordLineUpY*195)), "Busby", red );
gdImageFilledRectangle( gdImage, 105+(WordLineUpX*140), 130+(WordLineUpY*195), 95+(WordLineUpX*140), 170+(WordLineUpY*195), black );
gdImageFilledRectangle( gdImage, 80 +(WordLineUpX*140), 165+(WordLineUpY*195), 120+(WordLineUpX*140), 170+(WordLineUpY*195) , black );
gdImageFilledEllipse( gdImage, 100+(WordLineUpX*140), 115+(WordLineUpY*195), 30, 30, black );
gdImageFilledEllipse( gdImage, 80 +(WordLineUpX*140), 140+(WordLineUpY*195), 30, 30, black );
gdImageFilledEllipse( gdImage, 120+(WordLineUpX*140), 140+(WordLineUpY*195), 30, 30, black );
WordLineUpX is what shifts the cards along depending if its card 1,2,3,4 or 5. and WordLineUpY is what shifts it up and down for hand 1 and 2.
I dont know the cause of the error, pretty sure its to do with the WordLineUpX being 0, but I'm really not sure. I've tried other things to make it work and it still gives the same result
Thank you in advance for any help