[Include] Coloured Chat Text [2 Versions]
#10

Quote:
Originally Posted by Zh3r0
Посмотреть сообщение
Never knew you can do without return, thanks Ryder! Once again, i learned something new!
It's returning a value still, just 0 instead of the default, 1. (Returning the 0 will make it not send the original message)

The code he has can be written different ways to. Hopefully this will make you understand it more:
pawn Код:
public OnPlayerText(playerid, text[])
{
   SendPlayerMessageToAll(playerid, ColouredText(text));
   return 0;
}
Reply


Messages In This Thread
Coloured Chat Text [2 Versions] - by RyDeR` - 30.11.2010, 20:23
Re: Coloured Chat Text - by Zh3r0 - 30.11.2010, 20:33
Re: Coloured Chat Text - by Enerv - 30.11.2010, 20:45
Re: Coloured Chat Text - by Grim_ - 30.11.2010, 20:56
Re: Coloured Chat Text - by RyDeR` - 30.11.2010, 20:59
Respuesta: Coloured Chat Text - by anonymousx - 30.11.2010, 21:02
Re: Coloured Chat Text - by RyDeR` - 30.11.2010, 21:03
Re: Coloured Chat Text - by Grim_ - 30.11.2010, 21:04
Re: Coloured Chat Text - by Zh3r0 - 30.11.2010, 21:38
Re: Coloured Chat Text - by Grim_ - 30.11.2010, 21:42

Forum Jump:


Users browsing this thread: 1 Guest(s)