[Question]Chat
#5

ooppsss forgot something

pawn Код:
#define yellow "{FAF623}"
#define COLOR_WHITE 0xFFFFFFAA

stock GetPlayerNameEx(playerid)
{
    new string[MAX_PLAYER_NAME];
    GetPlayerName(playerid, string, sizeof(string));
    for(new i; i < MAX_PLAYER_NAME; i++) if (string[i] == '_') string[i] = ' ';
    return string;
}
remove the chatlog(playerid, text);

EDIT: GetPlayerNameEx will remove the underscore (only if you have 1 _) so this is great than making a MAX_PLAYER_NAME then getplayername.

tell me if it work
Reply


Messages In This Thread
[Question]Chat - by XDTheProGamerz - 10.01.2012, 07:33
Re: [Question]Chat - by Azzeto - 10.01.2012, 07:34
Re: [Question]Chat - by ScriptJorkis - 10.01.2012, 07:52
Re: [Question]Chat - by XDTheProGamerz - 10.01.2012, 09:00
Re: [Question]Chat - by ScriptJorkis - 10.01.2012, 09:04
Re: [Question]Chat - by XDTheProGamerz - 10.01.2012, 09:21
Re: [Question]Chat - by ScriptJorkis - 10.01.2012, 09:25
Re: [Question]Chat - by XDTheProGamerz - 10.01.2012, 09:30
Re: [Question]Chat - by ScriptJorkis - 10.01.2012, 09:33
Re: [Question]Chat - by XDTheProGamerz - 10.01.2012, 09:34

Forum Jump:


Users browsing this thread: 2 Guest(s)