hi,
i have been writing a code for generating a player name using strings for prefixes/suffixes, but the code i have written shows up an error "invalid arguements".

Here is the code:

STRING* prefix1 [20];
STRING* suffix1 [20];
STRING* char_name;

function set_presuf()
{

str_cpy(char_name,"Press Space to Name");

str_cpy(prefix1[1], "Odd");
str_cpy(prefix1[2], "Sar");
str_cpy(prefix1[3], "Stag");
str_cpy(prefix1[4], "Red");
str_cpy(prefix1[5], "Cob");
str_cpy(prefix1[6], "Sol");
str_cpy(prefix1[7], "Tom");
str_cpy(prefix1[8], "Star");
str_cpy(prefix1[9], "Taz");
str_cpy(prefix1[10], "Veer");
str_cpy(prefix1[11], "Pag");
str_cpy(prefix1[12], "Moth");
str_cpy(prefix1[13], "Yelp");
str_cpy(prefix1[14], "Spas");
str_cpy(prefix1[15], "Jun");
str_cpy(prefix1[16], "Spindle");
str_cpy(prefix1[17], "Deak");
str_cpy(prefix1[18], "Pok");
str_cpy(prefix1[19], "Yun");
str_cpy(prefix1[20], "Stab");

str_cpy(suffix1[1], "head");
str_cpy(suffix1[2], "uld");
str_cpy(suffix1[3], "ond");
str_cpy(suffix1[4], "elder");
str_cpy(suffix1[5], "rig");
str_cpy(suffix1[6], "werty");
str_cpy(suffix1[7], "erty");
str_cpy(suffix1[8], "rag");
str_cpy(suffix1[9], "wandil");
str_cpy(suffix1[10], "cup");
str_cpy(suffix1[11], "fire");
str_cpy(suffix1[12], "riddler");
str_cpy(suffix1[13], "dernal");
str_cpy(suffix1[14], "hoble");
str_cpy(suffix1[15], "ernal");
str_cpy(suffix1[16], "ugar");
str_cpy(suffix1[17], "addle");
str_cpy(suffix1[18], "rond");
str_cpy(suffix1[19], "al");
str_cpy(suffix1[20], "indel");

}


thanks in advance, dakilla.


One day there will be an unfixable bug,
That day is not today.