SA-MP Forums Archive
No shows all strings, why? - 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: No shows all strings, why? (/showthread.php?tid=607188)



No shows all strings, why? - Vaki - 15.05.2016

In pawno
Quote:

SCMF(killerid, -1, ""CRVENA"UPOZORENJE:"BELA"Dobili ste"CRVENA" 3 WANTED LEVELA "BELA"zbog ubistva!");
new string[700];
format(string, sizeof(string), ""CRVENA"DISPECER:"BELA"Pocinio: "CRVENA"%s "BELA"Zlocin: "CRVENA"Ubistvo gradjanina "BELA"Lokacija: "CRVENA"%s "BELA"Wanted Level Pocinioca: "CRVENA"%d!", GetName(killerid),GetPlayerLocation(killerid),Play erInfo[killerid][pTrazeniLevel]);
ChatPD(-1, string);
format(string, sizeof(string), ""CRVENA"DISPECER:"BELA"Imamo novi prijavljen zlocin od:"CRVENA"dispecera!");
ChatPD(-1, string);

In game
http://prntscr.com/b4gaxl
Only second string write in game i try to swap but it's same so if someone can help me to fix this thing with strings..


Re: No shows all strings, why? - BiosMarcel - 15.05.2016

PHP код:
SCMF(killerid, -1"""CRVENA""UPOZORENJE:""BELA""Dobili ste""CRVENA"" 3 WANTED LEVELA ""BELA""zbog ubistva!");
new 
string[700];
format(stringsizeof(string), """CRVENA""DISPECER:""BELA""Pocinio: ""CRVENA""%s ""BELA""Zlocin: ""CRVENA""Ubistvo gradjanina ""BELA""Lokacija: "CRVENA"%s "BELA"Wanted Level Pocinioca: ""CRVENA""%d!"GetName(killerid),GetPlayerLocation(killerid),Play erInfo[killerid][pTrazeniLevel]);
ChatPD(-1string);
format(stringsizeof(string), """CRVENA""DISPECER:""BELA""Imamo novi prijavljen zlocin od:""CRVENA""dispecera!");
ChatPD(-1string); 
You have to escape the
Код:
"
with another
Код:
"



Re: No shows all strings, why? - Vaki - 16.05.2016

I cant understand you how this help me if i double up this "


Re: No shows all strings, why? - Konstantinos - 16.05.2016

Max characters that can be displayed in client messages are 144. Your text alone (without the data from 3 specifiers) is 153 characters.

Quote:

If a message is longer than 144 characters, it will not be sent. Truncation can be used to prevent this. Displaying a message on multiple lines will also solve this issue.




Re: No shows all strings, why? - Vaki - 16.05.2016

Now if message are more logner then 144 to make this
Quote:

""

but not this
Quote:

"

?