08.02.2013, 19:17
Try using a stock instead of making a variable for pname.
Try this.
Try this.
pawn Код:
stock GetName(playerid)
{
new Name[MAX_PLAYER_NAME];
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, Name, sizeof(Name));
}
return Name;
}
pawn Код:
format(string, sizeof(string), "* %s has joined the server", GetName);