Random welcome/leaving messages come up when restarting
#7

Try using a stock instead of making a variable for pname.

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);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)