Jump to content
  • 0

pomoc - Délka Dialogu


MaRekツ

Dotaz

Dobrý večer.

Hledal jsem a nenašel jsem to tu.

Potřeboval bych pomoct. píšu na server pravidla do dialogu (DIALOG_STYLE_MSGBOX) ale.. je tam povolený málo znaků, pak to v pawnu hází errory, že je ten řádek moc dlouhej. Poradí mi někdo, prosím jak udělat aby ten text mohl bejt dlouhej jak budu potřebovat? Děkuju předem.:)

Link to comment
Share on other sites

5 odpovědí na tuto otázku

Recommended Posts

  • 0
Dobrý večer.

Hledal jsem a nenašel jsem to tu.

Potřeboval bych pomoct. píšu na server pravidla do dialogu (DIALOG_STYLE_MSGBOX) ale.. je tam povolený málo znaků, pak to v pawnu hází errory, že je ten řádek moc dlouhej. Poradí mi někdo, prosím jak udělat aby ten text mohl bejt dlouhej jak budu potřebovat? Děkuju předem.:)

zkus dat vetsi string[256];

Link to comment
Share on other sites

  • 0

new str[500],string[2][250];

 

format(string[0],250,"......................................................................");

format(string[1],250,",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,");

format(str,500,"%s%s",string[0],string[1]);

 

ShowPlayerDialog(playerid,0,0,"Info",str,"Ok","");

Link to comment
Share on other sites

  • 0
new str[500],string[2][250];

 

format(string[0],250,"......................................................................");

format(string[1],250,",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,");

format(str,500,"%s%s",string[0],string[1]);

 

ShowPlayerDialog(playerid,0,0,"Info",str,"Ok","");

Zkouším to, ale proč mám pořád string na jedný řádce?

Link to comment
Share on other sites

  • 0
new str[500],string[2][250];

 

format(string[0],250,"......................................................................");

format(string[1],250,",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,");

format(str,500,"%s%s",string[0],string[1]);

 

ShowPlayerDialog(playerid,0,0,"Info",str,"Ok","");

Zkouším to, ale proč mám pořád string na jedný řádce?

 

Tam kde chceš ukončiť riadok musíš dať \n

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...