eggroll666 Posted February 13, 2016 Posted February 13, 2016 i'm trying to name my character as he's spawning into the world but i can't figure out how to use this function function SetCharacterName(string First, string Last, string Nick){strFirstName = First;strLastName = Last;strNickName = Nick;} i'm trying to use it like this but i'm getting errors when compiling SetCharacterName(First("Joe"), Last("Schmo"), Nick,("Person"));
Deleted32045420User Posted February 13, 2016 Posted February 13, 2016 On 2/13/2016 at 8:15 PM, eggroll666 said: i'm trying to name my character as he's spawning into the world but i can't figure out how to use this function function SetCharacterName(string First, string Last, string Nick){strFirstName = First;strLastName = Last;strNickName = Nick;} i'm trying to use it like this but i'm getting errors when compiling SetCharacterName(First("Joe"), Last("Schmo"), Nick,("Person")); to use functions like that you pass only the strings in a row separated by commas:function SetCharacterName(string First, string Last, string Nick) { strFirstName = First; strLastName = Last; strNickName = Nick; } SetCharacterName("James","Bond","007");
Recommended Posts