20.11.2008, 22:04
Make a RP name for a Player (Removes the "_")
Example how work with.
GetPlayerName(playerid, sendername, sizeof(sendername));
Replace it with
sendername=GetPlayerNameEx(playerid);
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
Replace it with
giveplayer=GetPlayerNameEx(giveplayerid);
Easy right ?
pawn Код:
GetPlayerNameEx(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
for(new i=0;i<strlen(name);i++)
if(name[i]=='_')
name[i]=' ';
return name;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
Replace it with
sendername=GetPlayerNameEx(playerid);
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
Replace it with
giveplayer=GetPlayerNameEx(giveplayerid);
Easy right ?