Dialog does not show completely - 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: Dialog does not show completely (
/showthread.php?tid=346666)
Dialog does not show completely -
Neil. - 29.05.2012
Is it because I have too many words in the
PHP код:
new message[] = "1 - No cheating or any kind of modification (3rd party applications)\n2 - No flaming, racism or any sort of discrimination towards any other player\n3 - No spamming/flooding";
new message2[] = "\n4 - Avoid the unnecessary use of sexual language\n5 - Abusing of server bugs is not allowed and should be reported immediately\n6 - Player's should use /report instead of shouting hackers into the chatbox\n7 - Respect every players in the server\n8 - No ramming (Does not apply in some cases)\n9 - No Deathmatching(Does not apply in some cases)";
new string[150];
format(string, sizeof(string),"%s %s",message,message2);
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX,"\t\tRules",string,"Agree","");
Re: Dialog does not show completely -
ViniBorn - 29.05.2012
Re: Dialog does not show completely -
Neil. - 29.05.2012
Thanks it worked like a charm, and where can I find some tutorials about strings, or how many bytes i'll use in a string?
Re: Dialog does not show completely -
TzAkS. - 29.05.2012
Is about how many letters you have.
Re: Dialog does not show completely -
ViniBorn - 29.05.2012
Two interesting topics ...
https://sampforum.blast.hk/showthread.php?tid=55261
https://sampforum.blast.hk/showthread.php?tid=216730
Re: Dialog does not show completely -
mati233 - 29.05.2012
You can use just 1 variable:
PHP код:
new message[1024] = "1 - No cheating or any kind of modification (3rd party applications)\n2 - No flaming, racism or any sort of discrimination towards any other player\n";
format(message, sizeof(message), "%s3 - No spamming/flooding\n4 - Avoid the unnecessary use of sexual language\n5 - Abusing of server bugs is not allowed and should be", message);
format(message, sizeof(message), "%s reported immediately\n6 - Player's should use /report instead of shouting hackers into the chatbox\n7 - Respect every", message);
format(message, sizeof(message), "%s players in the server\n8 - No ramming (Does not apply in some cases)\n9 - No Deathmatching(Does not apply in some cases)", message);
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX,"\t\tRules",message,"Agree","");
Re: Dialog does not show completely -
iFederal - 29.05.2012
[ame]http://www.youtube.com/watch?v=SHcLP0mwjkE[/ame]
Re: Dialog does not show completely -
SuperViper - 29.05.2012
Every character (including spaces) takes up 1 cell. If you're sending a client message, then you should just go with 128 unless you know that your string is a lot smaller than that.