I am trying to display to the screen player name and status.
I can do the name via outtextxy as follows:
but when I try doing the following where "hits" is an integer it won't work. I tried doing static_cast but it didn't work.
I can do the cout method as follows and all is fine. It is only in outtextxy that there is a problem.
cout << grpchrs[i].hits<<endl;