06.01.2013, 18:59
Is there any simpler way to convert an integer to a string than using valstr? In C#, for example, you can do integerVar.ToString();
I'm asking this because I have a simple 2-digit integer I want to use in a y_ini tag, but tags are strings, so to do so I have to:
1. Declare a string.
2. Use valstr to assign said integer to string.
3. Use the newly declared and assigned string variable.
I want it to work so that I can put it in like a string, while fetching the value of the integer. Something like this:
But is this even possible?
I'm asking this because I have a simple 2-digit integer I want to use in a y_ini tag, but tags are strings, so to do so I have to:
1. Declare a string.
2. Use valstr to assign said integer to string.
3. Use the newly declared and assigned string variable.
I want it to work so that I can put it in like a string, while fetching the value of the integer. Something like this:
pawn Код:
"{myVar}"