Jump to content

how to use function setCharacterName


eggroll666

Recommended Posts

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...