SA-MP Forums Archive
Max string length for dialogs? - 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: Max string length for dialogs? (/showthread.php?tid=363778)



Max string length for dialogs? - The King's Bastard - 28.07.2012

Hi.

I have huge dialogs which are automatically generated.
Now the string cuts off after 4224 characters.
Is this the limit?


Re: Max string length for dialogs? - Revo - 28.07.2012

Why do you have a dialog of 4224 characters? >.<

You should probably split it up in multiple dialogs at a point of exceeding ~1000-800 characters.


Re: Max string length for dialogs? - The King's Bastard - 28.07.2012

Because I have an inventory system which requires displaying as many items as possible.


Re: Max string length for dialogs? - Dan. - 28.07.2012

Use strcat.


Re: Max string length for dialogs? - The King's Bastard - 28.07.2012

That's what I'm already using.


Re: Max string length for dialogs? - Babul - 28.07.2012

iam surprised that you can display more than 4096 chars in a dialog, i thought this is the limit, obviously i have to revise my dialog script aswell. to increase your inventory-dialog size, remove some color formatting codes. i know, it will not look neat anymore, but its worth the effort until you decide to script a system where you can click "next page" or similar.