Posts: 1,266
Threads: 6
Joined: Oct 2014
Quote:
Originally Posted by JordanZaundd
PHP код:
format(string,sizeof(string), "**Bike ID: %i - MODEL ID: %i\n", CarInfo[i][cID], CarInfo[i][cModel]);
strcat(string, tmpstr, sizeof(string)); // This adds the new line to your dialog.
|
You're formating string and stracting the text of tmpstr into string while tmpstr is empty, you've to format tmpstr and strcat it into string:
PHP код:
format(tmpstr,sizeof(tmpstr), "**Bike ID: %i - MODEL ID: %i\n", CarInfo[i][cID], CarInfo[i][cModel]);
strcat(string, tmpstr, sizeof(string)); // This adds the new line to your dialog.
other bug/mistake already mentioned by Konstantinos.