GetPlayerNameEx?
#2

pawn Код:
stock RemUnderLine(name[MAX_PLAYER_NAME])
{
    new UL = strfind(name, "_", true);
    while(UL != -1)
    {
        name[UL] = ' ';
        UL = strfind(name, "_", true);
    }
    return name;
}
Didn't tested it.

Works as:

Assign the name to the result of the function:

pawn Код:
new name[MAX_PLAYER_NAME]; format(name, sizeof name, "Sir_John_Davy"); //There's probably another function available then format, don't know :P.
print(name); // Will print "Sir_John_Davy"
name = RemUnderLine(name);
print(name); //Will print "Sir John Davy"
Don't set player names according to this

Once again, I don't know if it works.

Edit: tried it, doesn't work. Lemme fix it.
Edit: Works now.
Reply


Messages In This Thread
GetPlayerNameEx? - by Ihsan_Cingisiz - 08.08.2010, 15:45
Re: GetPlayerNameEx? - by Hiddos - 08.08.2010, 15:51
Re: GetPlayerNameEx? - by Jeffry - 08.08.2010, 16:00

Forum Jump:


Users browsing this thread: 1 Guest(s)