Hey guys. My question is as follows... I want to add both string and int into reply and I know it can be done this way:
But is there a way how to do it this way? (currently gives "error CS0029: Cannot implicitly convert type `string' to `int')...
[ConsoleCommand("test")]
void cmdTest()
{
string name = "Jack";
int age = "25";
Puts("Name is " + name + " and age is " + age");
}But is there a way how to do it this way? (currently gives "error CS0029: Cannot implicitly convert type `string' to `int')...
[ConsoleCommand("test")]
void cmdTest()
{
string name = "Jack";
int age = "25";
Puts("Name is {0} and age is {1}", name, age);
}