Code: Select all
char static YouHaveStr[] = "You have ";
char static Stakes1Str[] = " stakes";
// Builds char "You have X stakes"
strclr(StakesStr); // clear stakes char
intToStr(StakesInt, StakesStr, 0); // convert stakes int to char
strclr(MessageBoxLineStr2); // clear char
strcpy(MessageBoxLineStr2, YouHaveStr); // copy "You have "
strcat(MessageBoxLineStr2, StakesStr); // copy no of stakes to string
strcat(MessageBoxLineStr2, Stakes1Str); // copy " stakes"