Roleplay Name?
#3

This is what I use.
pawn Код:
stock strreplace(string[], find, replace)
{
    for(new i=0; string[i]; i++) {
        if(string[i] == find) {
            string[i] = replace;
        }
    }
}
stock GetName(playerid)
{
    new string[MAX_PLAYER_NAME];
    GetPlayerName(playerid,string,sizeof(string));
    strreplace(string,'_',' ');
    return string;
}
Reply


Messages In This Thread
Roleplay Name? - by Reklez - 18.03.2012, 02:44
Re: Roleplay Name? - by antonio112 - 18.03.2012, 02:46
Re: Roleplay Name? - by ReneG - 18.03.2012, 02:47
Re: Roleplay Name? - by Nicholas. - 18.03.2012, 02:49
Re: Roleplay Name? - by Reklez - 18.03.2012, 02:54
Re: Roleplay Name? - by ReneG - 18.03.2012, 03:07
Re: Roleplay Name? - by Reklez - 18.03.2012, 03:12
Re: Roleplay Name? - by Nicholas. - 18.03.2012, 03:23
Re: Roleplay Name? - by Reklez - 18.03.2012, 03:30
Re: Roleplay Name? - by Skribblez - 18.03.2012, 03:42

Forum Jump:


Users browsing this thread: 1 Guest(s)