playername
#4

This..?

Add this to the end of your script. Then use it everytime whenever a player's name is required.
pawn Код:
stock GetName(playerid)
{
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername,sizeof(playername));
    return playername;
}
So, whenever you format a string, just add GetName(id).. No need for GetPlayerName again & again..
pawn Код:
format(String,sizeof(String),"%s made you a admin level %d",GetName(playerid),level);
Reply


Messages In This Thread
playername - by bartje01 - 25.06.2011, 10:43
Re: playername - by ||123|| - 25.06.2011, 10:50
Re: playername - by bartje01 - 25.06.2011, 11:11
Re: playername - by iPLEOMAX - 25.06.2011, 11:15
Re: playername - by bartje01 - 25.06.2011, 11:23

Forum Jump:


Users browsing this thread: 2 Guest(s)