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
#2

Код:
public OnPlayerText(playerid, text[])
{
new str[128];//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);
}
Reply
#3

I was thinking about 128 too, but only 128 characters can be in a player's message?
Reply
#4

yep 128 is max
Reply
#5

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)