Capitalizing 1st letters of First, and last name... ? Firstname_Lastname
#6

Ok.. now I have
pawn Код:
new NewName[2][MAX_PLAYER_NAME];
    split(PlayerName(playerid),NewName,'_');
    printf("%s_%s",NewName[0],NewName[1]);
    new pos;
    pos = strfind(PlayerName(playerid),NewName[1]);
    printf("%s_%s",NewName[0],NewName[1]);
    format(string,sizeof(string),"%s_%s",NewName[0],NewName[1]);
    new letter1[10];
    format(letter1,10,"%s",toupper(NewName[0][0]));
    new letter2[10];
    format(letter2,10,"%s",toupper(NewName[1][0]));
    strdel(string,0,0);
    strins(string,letter1,0,24);
    strdel(string,pos,pos);
    strins(string,letter2,pos,24);
    SetPlayerName(playerid,string);
It still isn't working..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)