SA-MP Forums Archive
[Ajuda] Usar Letras e Numeros no Login ... - 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] Usar Letras e Numeros no Login ... (/showthread.php?tid=501992)



Usar Letras e Numeros no Login ... - BWCALLEf - 21.03.2014

Ola Td Bem, Gostaria de saber como faзo para o player quando for registrar poder usar letras e numeros
por que so esta para usar numeros e coisa simples


E se poderem me ajudar tbm estou usando o seguinte
Code:
public OnPlayerText(playerid, text[])
{
    new textv2[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    format(textv2, sizeof (textv2), "%d >> %s: %s", playerid, name, text);
    SendPlayerMessageToAll(playerid, textv2);
    return 0; // ignore the default text and send the custom one
}
MAS FICA ASSIM NICK:NICK[ID]:<TEXTO> FICA O NICK DEPOIS O NICK DENOVO COM A COR Q ESCOLHI


Re: Usar Letras e Numeros no Login ... - GabrielRibeiro - 21.03.2014

Quote:
Originally Posted by BWCALLEf
View Post
Ola Td Bem, Gostaria de saber como faзo para o player quando for registrar poder usar letras e numeros
por que so esta para usar numeros e coisa simples


E se poderem me ajudar tbm estou usando o seguinte
Code:
public OnPlayerText(playerid, text[])
{
    new textv2[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    format(textv2, sizeof (textv2), "%d >> %s: %s", playerid, name, text);
    SendPlayerMessageToAll(playerid, textv2);
    return 0; // ignore the default text and send the custom one
}
MAS FICA ASSIM NICK:NICK[ID]:<TEXTO> FICA O NICK DEPOIS O NICK DENOVO COM A COR Q ESCOLHI
pawn Code:
OnPlayerText(playerid, text[])
{
    new textv2[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    format(textv2, sizeof (textv2), "%d >> %s: %s", playerid, name, text);
    SendPlayerMessageToAll(-1, textv2);
    return 0; // ignore the default text and send the custom one
}



Re: Usar Letras e Numeros no Login ... - BWCALLEf - 21.03.2014

ACHO Q ASSIM O CHAT NAO APARECE ?


Re: Usar Letras e Numeros no Login ... - GabrielRibeiro - 21.03.2014

Quote:
Originally Posted by BWCALLEf
View Post
ACHO Q ASSIM O CHAT NAO APARECE ?
Bom estava procurando erro no seu cуdigo o ъnico que eu vi й que
SendClientMessageToAll nгo usa playerid jб que tem que ir para todos, mбs foi o ъnico que eu vi de errado.


Re: Usar Letras e Numeros no Login ... - BWCALLEf - 21.03.2014

BOM QUERO DEIXAR O NICK O ID E O TEXT DE CORES FIXAS FICARIA ASSIM
Code:
new textv2[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    format(textv2, sizeof (textv2), "{696969}%s: {BEBEBE}[%d] {BEBEBE}%s", name, playerid, text);
    SendPlayerMessageToAll(playerid, textv2);
    return 0;
}
MAS QUANDO DIGITADO O TEXTO FICA NICK>NICK[ID]:TEXTO REPETE O NICK


Re: Usar Letras e Numeros no Login ... - GabrielRibeiro - 21.03.2014

Quote:
Originally Posted by BWCALLEf
View Post
BOM QUERO DEIXAR O NICK O ID E O TEXT DE CORES FIXAS FICARIA ASSIM
Code:
new textv2[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    format(textv2, sizeof (textv2), "{696969}%s: {BEBEBE}[%d] {BEBEBE}%s", name, playerid, text);
    SendPlayerMessageToAll(playerid, textv2);
    return 0;
}
MAS QUANDO DIGITADO O TEXTO FICA NICK>NICK[ID]:TEXTO REPETE O NICK
pawn Code:
new textv2[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    format(textv2, sizeof (textv2), "{696969}%s: {BEBEBE}[%d] {BEBEBE}%s", name, playerid, text);
    SendPlayerMessageToAll(-1, textv2);
    return 0;
}

E agora meu amigo?


Re: Usar Letras e Numeros no Login ... - BWCALLEf - 21.03.2014

Code:
SendPlayerMessageToAll(-1, textv2);
DESSA MANEIRA O CHAT NAO APARECE


Re: Usar Letras e Numeros no Login ... - GabrielRibeiro - 21.03.2014

Quote:
Originally Posted by BWCALLEf
View Post
Code:
SendPlayerMessageToAll(-1, textv2);
DESSA MANEIRA O CHAT NAO APARECE
pawn Code:
public OnPlayerText(playerid, text[])
{
    if(strlen(text) <= 60)
    {
        format(corda[playerid], 128, "%s diz: %s", gNome(playerid), text);
        ProxDetector(playerid, texto[playerid], COR_BRANCO, 20.0);
        SetPlayerChatBubble(playerid, texto[playerid], 0xAFC7FFFF, 20.0, 5000);
    }
    else
    {
        new Aux[60];
        strmid(Aux, text, 0, 59);
        format(texto[playerid], 86, "%s diz: %s", gNome(playerid), Aux);
        ProxDetector(playerid, texto[playerid], COR_BRANCO, 20.0);
        SetPlayerChatBubble(playerid, texto[playerid], 0xAFC7FFFF, 20.0, 5000);
        format(texto[playerid], 62, ""CINZA" (( ... )) "BRANCO2"%s",text[60]);
        ProxDetector(playerid, texto[playerid], COR_BRANCO, 20.0);
    }
    return 0;
}

o meu й assim...


Re: Usar Letras e Numeros no Login ... - BWCALLEf - 21.03.2014

FICA ASSIM O NICK LARANJA NAO ERA PARA EXISTIR


Re: Usar Letras e Numeros no Login ... - BWCALLEf - 22.03.2014

ALGUEM ME AJUDA ?


Re: Usar Letras e Numeros no Login ... - PT - 22.03.2014

Voce usa FilerScripts?

Se sim faзa return 0 na callback OnPlayerText tambem.


Re: Usar Letras e Numeros no Login ... - BWCALLEf - 22.03.2014

PT EU NAO USO FS ESTA EM MEU GM ESTA EXATAMENTE ASSIM
PHP Code:
public OnPlayerText(playeridtext[])
{
    new 
textv2[128], name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnamesizeof (name));
    
format(textv2sizeof (textv2), "{696969}%s: {BEBEBE}[%d] {BEBEBE}%s"nameplayeridtext);
    
SendPlayerMessageToAll(playeridtextv2);
    return 
0;




Re: Usar Letras e Numeros no Login ... - Schocc - 22.03.2014

Use SendClientMessageToAll.