ShowPlayerDialog limits [rep++]
#1

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.
Reply
#2

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

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

Edit: ^ fast enough

2048 characters
https://sampwiki.blast.hk/wiki/Limits
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)