eggroll666 Posted February 13, 2016 Share 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")); Link to comment Share on other sites More sharing options...
Deleted32045420User Posted February 13, 2016 Share 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")); 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"); Link to comment Share on other sites More sharing options...
eggroll666 Posted February 14, 2016 Author Share Posted February 14, 2016 thanks, that worked perfectly Link to comment Share on other sites More sharing options...
Recommended Posts