SA-MP Forums Archive
This topic can be removed now i fix it ;) - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: This topic can be removed now i fix it ;) (/showthread.php?tid=99574)



This topic can be removed now i fix it ;) - shady91 - 28.09.2009

This topic can be removed now i fix it


Re: not to sure what the max length for a dialog box - ғαιιοцт - 28.09.2009

4096 characters

found here:
http://forum.sa-mp.com/index.php?topic=119892.0


Re: not to sure what the max length for a dialog box - shady91 - 28.09.2009

thought so do you have any idear why its only showing me the top line?


Re: not to sure what the max length for a dialog box - ғαιιοцт - 28.09.2009

you used the "format" function wrong. this should work:

pawn Код:
new s[750];
 format(s,sizeof(s), "%s%s", "\nRules of Conduct:\n\nNo Random Deathmatching\nNo Spamming\nNo Disrespecting Admins \nNo Insulting other players\nNo Hacking or cheating in any way or form\nDo not affiliate with any hacks use /report immediately\nPlease take notice that if any rules are broken may result in a ban,\nfor further information on rules and behavior.\nplease visit our forums at: forum.freeworld-rp.co.cc/index.php If you think you have been ",
"disrespected, please report the incodent on our forums \nfor emergency contact you can get a hold of the owners at\nsa_mp@live.c0.uk or candrsa-mp@live.com.");
 ShowPlayerDialog(playerid,5,DIALOG_STYLE_MSGBOX,"Terms And agreements",s,"agree","disagree");
you did:
Код:
format(s,sizeof(s),"text1", "text2");
and it must be:
Код:
format(s,sizeof(s), "%s%s", "text1", "text2");



Re: not to sure what the max length for a dialog box - shady91 - 28.09.2009

lol i should of none that thanks mate


Re: not to sure what the max length for a dialog box - ғαιιοцт - 28.09.2009

you're welcome!


Re: This topic can be removed now i fix it ;) - Mike Garber - 29.09.2009

Don't edit your posts when It's fixed....
Others might get the same problem, and then If they search they'll (maybe) find this topic instead
of a topic with the question & answer, or they'll not find it at all.

This is ONE of the reason that many people have to create new topics asking questions that's been asked
before.