Question?
#5

Okay, so you need a function which removes the underscore from a role play name properly? That's easy...

pawn Код:
stock GetNameEx(playerid)
{
    new str[24], String[128];
    GetPlayerName(playerid, String, 24);
    strmid(str, String, 0, strlen(String), 24);
    for(new i = 0; i < MAX_PLAYER_NAME; i++)
    {
        if (str[i] == '_') str[i] = ' ';
    }
    return str;
}
Reply


Messages In This Thread
Question? - by GeonMake - 14.06.2011, 23:54
Re: Question? - by jot16 - 14.06.2011, 23:57
Re: Question? - by Scenario - 15.06.2011, 00:33
Re: Question? - by GeonMake - 15.06.2011, 01:16
Re: Question? - by Scenario - 15.06.2011, 01:24
Re: Question? - by GeonMake - 15.06.2011, 01:52
Re: Question? - by Scenario - 15.06.2011, 02:07
Re: Question? - by GeonMake - 15.06.2011, 10:19
Re: Question? - by Sasino97 - 15.06.2011, 11:07
Re: Question? - by GeonMake - 15.06.2011, 11:40

Forum Jump:


Users browsing this thread: 1 Guest(s)