GetPlayerNameEx?
#1

Hello, how can i already remove the Ihsan'_'Cingisiz """_"""??
Reply
#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
#3

http://forum.sa-mp.com/showpost.php?...19&postcount=3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)