29.09.2012, 08:48
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.
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?
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);
What can i do that the message will be shown every time?