// if I was you I'd use strmid instead of format like thisstrmid(FactionInfo[id][fName], fname, 0, strlen(fname));