SA-MP Forums Archive
ShowPlayerDialog limits [rep++] - 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: ShowPlayerDialog limits [rep++] (/showthread.php?tid=553287)



ShowPlayerDialog limits [rep++] - EnforcerDon - 29.12.2014

I have a very simple question about the native ShowPlayerDialog function, and I have searched ****** without success looking for answers.

pawn Код:
ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);
The samp wiki tells us that the string passed to
Код:
caption[]
must not be longer than 64 characters, however it does not give an indication as to the limitations of
Код:
info[]
.

What I would like to know is what is the limit on the number of characters I can pass to
Код:
info[]
, if there is one.

Thanks in advance for any help I may receive.


Re: ShowPlayerDialog limits [rep++] - SilentSoul - 29.12.2014

https://sampwiki.blast.hk/wiki/Limits

Scroll down to dialog section, you'll find that the maximum dialog info text is 2048


Re: ShowPlayerDialog limits [rep++] - RoboN1X - 29.12.2014

Edit: ^ fast enough

2048 characters
https://sampwiki.blast.hk/wiki/Limits


Re: ShowPlayerDialog limits [rep++] - Boot - 29.12.2014

Yes, you are right. There is no information about string length for info[ ], but you have to know that there are also a limitation on it.

I also had problems regarding this...

If you are going to write a long text on this paramter, the best way to do that is by using strcat function.

Take a look : https://sampforum.blast.hk/showthread.php?tid=243205