[Ajuda] OnPlayerText -
Luciano* - 11.05.2012
Tipo, quando vou falar uma frase, mesmo ela sendo pequena o texto pula para a segunda linha, como faзo para aumentar o numero de falavras em uma frase?
pawn Код:
public OnPlayerText(playerid, text[])
{
SetPlayerChatBubble(playerid, text, -1, 100.0, 10000);//Chat em cima da cabeзa ao falar.
//Falar com ID na frente
new string[256];
format(string, sizeof(string), "{FF0000}[{FFFFFF}ID: %d{FF0000}]:{FFFFFF} %s", playerid, text);
SendPlayerMessageToAll(playerid,string);
return 0;
}
Re: [Ajuda] OnPlayerText -
kinhobryant - 11.05.2012
Aumenta o numero da string
Respuesta: [Ajuda] OnPlayerText -
Luciano* - 11.05.2012
Ja fiz isso, mais nao adiantou.
Re: [Ajuda] OnPlayerText -
kinhobryant - 11.05.2012
Entгo creio eu q isso ja e proprio do SA_MP
Respuesta: [Ajuda] OnPlayerText -
Luciano* - 11.05.2012
Antes de eu colocar esta funзгo, estava normal.
Re: [Ajuda] OnPlayerText -
tonisantolia - 11.05.2012
pawn Код:
public OnPlayerText(playerid, text[])
{
SetPlayerChatBubble(playerid, text, -1, 100.0, 10000);//Chat em cima da cabeзa ao falar.
//Falar com ID na frente
new string[1500];
format(string, sizeof(string), "{FF0000}[{FFFFFF}ID: %d{FF0000}]:{FFFFFF} %s", playerid, text);
SendPlayerMessageToAll(playerid,string);
return false;
}
Respuesta: [Ajuda] OnPlayerText -
Luciano* - 11.05.2012
Ainda nгo funcionou.
Re: [Ajuda] OnPlayerText -
BreakDriFT - 11.05.2012
Toni oque й isso ? OMG .
Se nгo me engano o mбximo й [
128].
A nгo ser em caso de uso do strcat ou fazendo consultas SQL. Entre outros
Re: [Ajuda] OnPlayerText -
zSuYaNw - 11.05.2012
Soluзгo simples e fбcil..
pawn Код:
public OnPlayerText(playerid, text[])
{
if(strlen(text) >= 100)
return SendClientMessage(playerid, -1, "seu texto contйm muitas linhas, diminua umpouco...");
SetPlayerChatBubble(playerid, text, -1, 100.0, 10000);//Chat em cima da cabeзa ao falar.
//Falar com ID na frente
new string[128];
format(string, sizeof(string), "{FF0000}[{FFFFFF}ID: %d{FF0000}]:{FFFFFF} %s", playerid, text);
SendPlayerMessageToAll(playerid,string);
return 0;
}
Re: [Ajuda] OnPlayerText -
zbt - 11.05.2012
Apenas retire as cores .