I have a function with default Parameters which displays text to screen. Something like this:
DrawScreenString(int, int, string, int uicolor, font);
I am however trying to pass in a string variable "livesRemaining" like so:
DrawScreenString(10, 5, "Lives : %d ",livesRemaining, 0xF14040, NULL);
livesRemaining = 3
So due to the fact that the function only takes in 5 arguments, it fails to compile, because the function thinks that i'm trying to pass in a 6th argument not knowing i'm trying to add string to the already existing string "Lives :"
This is what i want the result to look like:
Live : 3
I know this is not the right way of doing this, how do i do it ? Thanks a bunch !!
std::to_string.