auto capitalize function
#5

This will not work. Functions tolower and toupper only return the character...
You can try this. Is it what you want?

pawn Код:
public OnPlayerConnect(playerid)
{
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
Name[0] = toupper(Name[0]);
Name[strfind(Name, "_", true) + 1] = toupper(Name[strfind(Name, "_", true) + 1]);
SetPlayerName(playerid, Name);
return true;
}
Reply


Messages In This Thread
auto capitalize function - by Naruto4 - 13.02.2010, 19:28
Re: auto capitalize function - by Naruto4 - 22.02.2010, 15:38
Re: auto capitalize function - by Joe Staff - 22.02.2010, 15:40
Re: auto capitalize function - by BlackFoX - 22.02.2010, 15:46
Re: auto capitalize function - by ¤Adas¤ - 22.02.2010, 16:13
Re: auto capitalize function - by BlackFoX - 22.02.2010, 16:37

Forum Jump:


Users browsing this thread: 1 Guest(s)