So I'm having a problem with some conversion to String...
My SASPerk has this function near the bottom:
When I try to compile it I get this error:
I had thought typecasting would work. I thought it was a perhaps a syntax issue in placement of the cast, so I put (string) after the thing I wanted to cast. Same error.
I'm fairly sure GetClientVeteranSkillLevel (KFPRI) returns a integer and according to the Legacy Wiki, int to string is supported, but it gives no sample code on usage (aka useless as documentation).
What am I doing wrong here?
My SASPerk has this function near the bottom:
Code:
static function string GetCustomLevelInfo (byte Level)
{
local string S;
S = Default.CustomLevelInfo;
// %L = Current "Bonus" Level
ReplaceText (S, "%L", string (GetClientVeteranSkillLevel (KFPRI)));
...
When I try to compile it I get this error:
Code:
Error, 'String' conversion: Bad or missing expression
I had thought typecasting would work. I thought it was a perhaps a syntax issue in placement of the cast, so I put (string) after the thing I wanted to cast. Same error.
I'm fairly sure GetClientVeteranSkillLevel (KFPRI) returns a integer and according to the Legacy Wiki, int to string is supported, but it gives no sample code on usage (aka useless as documentation).
What am I doing wrong here?