[Ajuda] Underline - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Underline (
/showthread.php?tid=414919)
Underline -
Alan_Sharks - 10.02.2013
como dexo o meu nome sem underline sу o meu nick tipo ADM Avenger??
Re: Underline -
Gleisson_. - 10.02.2013
Se eu entendi bem, vocк quer deixar seu nome com espaзo, no samp.
Se for isso, nгo tem como.
Re: Underline -
ForT - 11.02.2013
aqui um exemplo:
pawn Код:
public OnPlayerText(playerid, text[])
{
new nick[24],
string[128]
;
GetPlayerName(playerid, nick, 24);
for(new n; n < strlen(nick); ++n)
{
if (nick[n] == '_') nick[n] = ' ';
}
format(string, sizeof string, "%s: %s", nick, text);
SendClientMessageToAll(-1, string);
return 0;
}
Re: Underline -
Linow - 11.02.2013
Nгo tem como vocк colocar espaзo no nome, mas tem como substituir para quando o player falar.
pawn Код:
public OnPlayerText(playerid, text[])
{
new pName[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
if(!strcmp(pName, "_", true))
{
for(new i = 0; i < MAX_PLAYER_NAME; ++i)
{
if(pName[i] == '_') pName[i] = ' ';
}
}
format(string, sizeof(string), "%s: %s", pName, text);
SendClientMessageToAll(COR, string);
return 0;
}