27.12.2010, 02:42
Ok.. now I have
It still isn't working..
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);