Cambiar forma de texto - 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: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Cambiar forma de texto (
/showthread.php?tid=167083)
Cambiar forma de texto -
J96 - 11.08.2010
Buenas.
Al intentar cambiar la forma del texto ( escribir ), me envнa los dos mensajes a la vez.
Lo tengo asн:
pawn Код:
public OnPlayerText(playerid, text[])
{
new nombre[MAX_PLAYER_NAME], texto[300];
GetPlayerName(playerid, nombre, MAX_PLAYER_NAME);
format(texto, 300, "%s: %s", nombre, text);
SendClientMessageToAll(0xF213223, texto);
return 1;
}
Y me sigue saliendo el mensaje anterior y el nuevo.
Solucionado.Por si le pasa a alguien mбs, hay que cambiar el return 1; por return 0;.
Re: Cambiar forma de texto -
TheChaoz - 11.08.2010
en vez del SendClientMessageToAll, puedes usar "SendPlayerMessageToAll", en cuyo caso se mantendra el color del jugador en el mensaje.
Respuesta: Cambiar forma de texto -
J96 - 11.08.2010
Ah, йso tambiйn me sirve.Gracias

.
Re: Cambiar forma de texto -
MrDeath537 - 11.08.2010
Para que no te salga el mensaje original cambiб el "return 1" por "return 0"