Sting() into a 'BattleLog'

Hi there, I hope someone can help me.

I’m currently working a Twitch message system and I’d like the message to show up in game, and not in the chat itself. Any suggestions on what I’m doing wrong?

I keep getting the error;
error CS0019: Operator ‘/’ cannot be applied to operands of type ‘int’ and ‘string’

I would also like to have each message appear under one another.

 _Text.text = ("".ToString() + botChatManager.SendMessage(apiManager.GetLogin(), $"{e.ChatMessage.DisplayName} THANKYOU ".ToString() + playerStats.storedDamage * 2 / enemyStats.DEF.ToString()));

For context, ‘kappa’ (face) is what triggers the message.

202321-capture.jpg

Any help is greatly appreciated.

Thank you

PS: I did not write this code initially. I’m trying to add it as a visual within the game.

You are dividing an integer by a string

playerStats.storedDamage * 2 / enemyStats.DEF.ToString()

=>

(playerStats.storedDamage * 2 / enemyStats.DEF).ToString()

will work

thank you both. It works perfectly!