[HELP] RemoveUnderScore
#1

I got this function called RemoveUnderScore and it works like the sendername it just deletes the Under Score [_] of the player who sent the message.

The functions works like a charm but I need this function to giveplayerid too, so for an example:

format(string, sizeof(string), "** %s gives BlahBlah to %s", RemoveUnderScore(playerid) [HERE]);

There it says [HERE] should the giveplayerid be, but I want it to work like the sendername, it should removes the Under Score on it too.

This is how the function looks like:

Код:
stock RemoveUnderScore(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;
}
Thanks
Reply


Messages In This Thread
[HELP] RemoveUnderScore - by Fredden1993 - 30.08.2010, 14:14
Re: [HELP] RemoveUnderScore - by Claude - 30.08.2010, 14:26
Re: [HELP] RemoveUnderScore - by Fredden1993 - 30.08.2010, 14:30
Re: [HELP] RemoveUnderScore - by Fredden1993 - 30.08.2010, 14:51
Re: [HELP] RemoveUnderScore - by [XST]O_x - 30.08.2010, 14:54
Re: [HELP] RemoveUnderScore - by Fredden1993 - 30.08.2010, 15:08
Re: [HELP] RemoveUnderScore - by Fredden1993 - 30.08.2010, 15:23
Re: [HELP] RemoveUnderScore - by Bumbis - 30.08.2010, 16:18
Re: [HELP] RemoveUnderScore - by Fredden1993 - 30.08.2010, 16:30
Re: [HELP] RemoveUnderScore - by Bumbis - 30.08.2010, 16:32

Forum Jump:


Users browsing this thread: 2 Guest(s)