22.02.2010, 16:13
This will not work. Functions tolower and toupper only return the character...
You can try this. Is it what you want?
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;
}