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

Use strcat for that.
Reply
#3

Ok thank you. Do you mean that i send two SendClientMessageToAll?
For example the first SCMTA with the names and the second with the reason.

Player1 muted Player2 for X minutes
Reason: XXXXXX
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)