String to long for SCMToAll
#1

Hi,

i have a big problem. If i mute somebody a SendClientMessageToAll will be send to the chat.
The problem is that sometimes the string is to long for SendClientMessageToAll and the message is not shown in the chat.


pawn Код:
new stryzz[350];
format(stryzz,sizeof(stryzz),"{FF0000}[MUTE]: '{FFFFFF}%s (Id: %d){FF0000}' wurde von '{FFFFFF}%s{FF0000}' fьr %d Minute(n) gemuted. (Grund: {FFFFFF}%s{FF0000})",SpielerName(pID),pID,SpielerName(playerid),time,reason);
SendClientMessageToAll(0xFF0000FF,stryzz);
For example if the "reason" is to big (like 6 chars) the message is not shown. If the reason is small (3 chars) the message is shown.

What can i do that the message will be shown every time?
Reply


Messages In This Thread
String to long for SCMToAll - by Timmeyable - 29.09.2012, 08:48
Re: String to long for SCMToAll - by Face9000 - 29.09.2012, 09:44
AW: String to long for SCMToAll - by Timmeyable - 29.09.2012, 10:10

Forum Jump:


Users browsing this thread: 2 Guest(s)