this not working. where to put?
#6

try this
pawn Код:
stock UnderScore(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    for(new i = 0; i < MAX_PLAYER_NAME; i++)
    {
        if(name[i] == '_') name[i] = ' ';
    }
    return name;
}

public OnPlayerText(playerid,text[])
{
    new string[128];
    format(string,sizeof(string),"%s: %s", UnderScore(playerid),text);
    SendClientMessageToAll(color,string);
    return 0;
}
Reply


Messages In This Thread
this not working. where to put? - by TheDiscussionCafe - 28.04.2012, 14:31
Re: this not working. where to put? - by Niko_boy - 28.04.2012, 14:33
Re: this not working. where to put? - by TheDiscussionCafe - 28.04.2012, 14:38
Re: this not working. where to put? - by TheDiscussionCafe - 28.04.2012, 16:13
Re: this not working. where to put? - by Rudy_ - 28.04.2012, 16:25
Re: this not working. where to put? - by Rudy_ - 28.04.2012, 16:28
Re: this not working. where to put? - by TheDiscussionCafe - 28.04.2012, 16:54
Re: this not working. where to put? - by Rudy_ - 28.04.2012, 17:05

Forum Jump:


Users browsing this thread: 1 Guest(s)