Jump to content

pomoc STRING


LosO

Recommended Posts

Ahojte potreboval by som pomôcť.

 

Mám spravené cez /help pravidlá a mam ich tam fakt vela a do publicu ondialogresponse sa mi zmestí string len 720 ale to mi neukáže uplne celé pravidlá. Ale si nadefinujem string trebars na 1000 a dám to pod inc tak to potom ukáže cele ale ak to otvorím a zatvorím a potom znova otvorím tak mi to tam už ukazuje 2 krát mohli by sme mi stím pomôcť ako by som to mal vyriešiť ? tie pravidlá robím cez strcat

Link to comment
Share on other sites

if(dialogid == 4)
{
if(response == 1)
{
if(listitem == 0)
{
new s[700];
strcat(s,"Pravidla\n",700);
strcat(s,"Pravidla\n",700);
strcat(s,"Pravidla\n",700);
strcat(s,"Pravidla\n",700);
ShowPlayerDialog(playerid,4,DIALOG_STYLE_MSGBOX,"Pravidlá",st,"Speť","");
}}}

Link to comment
Share on other sites

QWER mam to tak len teraz ako som to prepisoval tak som sa tam pomilil.

 

Proste potreboval by som to niejak spraviť aby to mohlo byť tam večí string ale mne sa tam zmesti maximalne ten 700

Link to comment
Share on other sites

Toto mam hneď pod publicom ondialogresponse

 

new s[700];

a tento string používam na všetky dialog čo mam všetko funguje dobre aj info pekne ukazuje ale pravidlá mi už 3 posledné riadky neukáže

Link to comment
Share on other sites

if(strcmp(cmdtext, "/help", true) == 0)
{
ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Help:","1.) Pravidlá", "Dalej", "Koniec");
return 1;
}

 

if(dialogid == 4)
{
if(response == 1)
{
if(listitem == 0)
{
new s[700];
strcat(s,"Pravidla\n",700);
strcat(s,"Pravidla\n",700);
strcat(s,"Pravidla\n",700);
strcat(s,"Pravidla\n",700);
ShowPlayerDialog(playerid,4,DIALOG_STYLE_MSGBOX,"Pravidlá",s,"Speť","");
}}}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...