Max ChatMgs
#1

Hey Guys!

I'm trying to make a function into my script, which writes the player's name and ID into the chat when he messages.
I have the code:

pawn Код:
public OnPlayerText(playerid, text[])
{
new str[?];//And I dunno what string size should I write here =P
format(str, sizeof(str), "[%s][ID:%d]: %s", GetName(playerid), playerid, text);
return SendClientMessageToAll(colorWHITE, str);
}
So if You know, please reply

Thanks
Nonameman
Reply


Messages In This Thread
Max ChatMgs - by Nonameman - 12.07.2010, 22:48
Re: Max ChatMgs - by Mystique - 12.07.2010, 22:51
Re: Max ChatMgs - by Nonameman - 12.07.2010, 22:55
Re: Max ChatMgs - by Kar - 12.07.2010, 23:03
Re: Max ChatMgs - by Nonameman - 12.07.2010, 23:16

Forum Jump:


Users browsing this thread: 1 Guest(s)