Empty message in chat - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Empty message in chat (
/showthread.php?tid=503265)
Empty message in chat -
Blackazur - 28.03.2014
Hello, why this sendclientmessage wont be sended in the chat instead a empty message comes in the chat a message in which nothing is why is that so?
Код:
format(str,sizeof(str),""chat""OLD_ADMINCMD" [RANK] %s (%d) has been ranked up to rank {007D3E}'{21DD00}1{007D3E}'",PlayerName(killerid),killerid,SendClientMessageToAll(-1,str)); }
AW: Empty message in chat -
Blackazur - 28.03.2014
anyone?
AW: Empty message in chat -
Blackazur - 28.03.2014
The code i posted there is the problem that it dont show the message instead a empty message get posted in the chat with nothing and a blank line. Did your code fixed this problem?
Re: Empty message in chat -
Battlezone - 28.03.2014
Check your string length and increase it maybe?
Re: AW: Empty message in chat -
Konstantinos - 28.03.2014
Quote:
Originally Posted by Blackazur
The code i posted there is the problem that it dont show the message instead a empty message get posted in the chat with nothing and a blank line. Did your code fixed this problem?
|
Did you even try? Your code used SendClientMessageToAll as argument in the format and Ralfie separated them. Try his code and your question will be answered!
And it has nothing to do with the length.