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 i = 0; i < MAX_PLAYER_NAME; i++)
{
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!