Little problem.
#9

Quote:
Originally Posted by CalvinC
Посмотреть сообщение
And then use it by doing something like this:
pawn Код:
format(string, sizeof(string), "%s", GetRPName(playerid));
Quote:
Originally Posted by JaydenJason
Посмотреть сообщение
Thanks for the credits
Quote:
Originally Posted by ATGOggy
Посмотреть сообщение
Just put this:
PHP код:
stock GetRPName(playerid)
{
    new 
name[MAX_PLAYER_NAME];
    
GetPlayerName(playerid,name,sizeof(name));
    for(new 
0MAX_PLAYER_NAMEi++)
    {
        if(
name[i] == '_'name[i] = ' ';
    }
    return 
name;

anywhere in the script.
Quote:
Originally Posted by zork
Посмотреть сообщение
Lighter one:
PHP код:
stock GetName(playerid)
{
    new 
name[MAX_PLAYER_NAME];
    
GetPlayerName(playerid,name,sizeof(name));
    
name[strfind(name,"_")] = ' ';
    return 
name;

Y'all helped me a lot! Thank you!
Reply


Messages In This Thread
Little problem. - by AlterEGO - 24.03.2015, 15:00
Re: Little problem. - by JaydenJason - 24.03.2015, 15:08
Re: Little problem. - by fuckingcruse - 24.03.2015, 15:16
Re: Little problem. - by zork - 24.03.2015, 15:18
Re: Little problem. - by AlterEGO - 29.03.2015, 18:20
Re: Little problem. - by ATGOggy - 29.03.2015, 18:23
Re: Little problem. - by JaydenJason - 29.03.2015, 18:25
Re: Little problem. - by CalvinC - 29.03.2015, 18:43
Re: Little problem. - by AlterEGO - 29.03.2015, 21:01

Forum Jump:


Users browsing this thread: 1 Guest(s)