Firstname_Lastname HELP
#1

Hello all , In-Game when you are near a player you see , here is an example

Shawn_Miller (31)

How would I remove the _

so it would display only:

Shawn Miller (31)

Any Help ?
Reply
#2

Try running this in your OnPlayerConnect.

pawn Код:
new
        name[24],
        pos = strfind(name,"_");

    GetPlayerName(playerid,name,24);
    if(pos != -1)
    {
        strdel(name,pos,pos+1);
        strins(name," ",pos);
        SetPlayerName(playerid,name);
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)