A few errors in my gamemode
#5

If you want it to show the name before the text, you have to actually make a string and get the name.

pawn Код:
CMD:me(playerid, params[])
{
    new
        string[128],
        action[100];
    if(sscanf(params, "s[100]", action))
    {
        SendClientMessage(playerid, -1, "USAGE: /me [action]");
        return 1;
    }
    else
    {
        new playername[MAX_PLAYER_NAME];
        GetPlayerName(playerid, playername, sizeof(playername));
        format(string, sizeof(string), "* %s %s.",playername, action);
        ProxDetector(30, playerid, string, COLOR_PURPLE);
    }
    return 1;
}
Reply


Messages In This Thread
A few errors in my gamemode - by Songason - 18.07.2012, 19:27
Re: A few errors in my gamemode - by Dan. - 18.07.2012, 19:28
Re: A few errors in my gamemode - by Songason - 18.07.2012, 19:38
Re: A few errors in my gamemode - by Songason - 18.07.2012, 19:45
Re: A few errors in my gamemode - by Dan. - 18.07.2012, 20:00
Re: A few errors in my gamemode - by Songason - 18.07.2012, 20:07

Forum Jump:


Users browsing this thread: 1 Guest(s)