18.12.2010, 03:28
if you're using the name once in the command you could create a stock
then in a format
GetPlayerName(playerid, string to store it, size of the string);
pawn Код:
stock PlayerName(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
return name;
}
pawn Код:
format(string,sizeof(string),"name: %s",PlayerName(playerid));