RP name help
#6

Quote:
Originally Posted by RIDE2DAY
Посмотреть сообщение
This should do the job:
PHP код:
public OnPlayerConnect(playerid)
{
    new 
msg[36];
    
format(msgsizeof(msg), "Welcome %s!"GetName(playeridfalse));
    
SendClientMessage(playerid, -1msg);
    return 
1;
}
GetName(playeridbool:with_underscore true// Notice the with_underscore parameter.
{
    new 
name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnameMAX_PLAYER_NAME);
    if(!
with_underscore)
    {
        for(new 
0MAX_PLAYER_NAMEi++)
        {
            if(
name[i] == '_'name[i] = ' ';
        }
    }
    return 
name;

Still, didn't fix
Here is the photo
https://imgur.com/a/4dk22

And this is my code
PHP код:
GetName(playeridbool:with_underscore true// Notice the with_underscore parameter. 

    new 
name[MAX_PLAYER_NAME]; 
    
GetPlayerName(playeridnameMAX_PLAYER_NAME); 
    if(!
with_underscore
    { 
        for(new 
0MAX_PLAYER_NAMEi++) 
        { 
            if(
name[i] == '_'name[i] = ' '
        } 
    } 
    return 
name

Reply


Messages In This Thread
RP name help - by Arbico - 10.11.2017, 16:08
Re: RP name help - by JustNothing - 10.11.2017, 16:21
Re: RP name help - by Arbico - 10.11.2017, 16:34
Re: RP name help - by JustNothing - 10.11.2017, 16:48
Re: RP name help - by Arbico - 10.11.2017, 16:53
Re: RP name help - by Arbico - 10.11.2017, 17:13
Re: RP name help - by Arbico - 10.11.2017, 17:25
Re: RP name help - by PeterLinkson - 10.11.2017, 17:27
Re: RP name help - by Arbico - 10.11.2017, 17:31
Re: RP name help - by n00blek - 10.11.2017, 19:39

Forum Jump:


Users browsing this thread: 1 Guest(s)