DIALOG_STYLE_LIST Problem
#1

i want to when players type /teleports show all teleports stunts, dms, drifts , dives, jumps on one Dialog menu

here is command which i made

Код:
if (strcmp("/limba", cmdtext, true, 10) == 0)
    {
    new Str1[ ] =   "Teleports  (/Teleports)\nStunts  (/stunts)\nJumps  (/jumps)\nNrgs  (/nrgs)\nTubes  (/tubes)\nAirports  (/airports)\nDives  (/dives)\nIslands  (/islands)\nDrifts  (/drifts) \n\
                     \n\
                     \n",
        Str2[ ] =   "\n\
                     \n\
                     \n",
        StrF[ 1500 ];

    format( StrF, sizeof StrF, "%s%s%s%s%s%s%s%s%s", Str1, Str2);
    ShowPlayerDialog( playerid, DIALOG_mixup, DIALOG_STYLE_LIST , "Whole Teleports", StrF, "OK", "CANCEL" );
    return 1;
    }
and Here is dailog list for this command

Код:
if(dialogid == DIALOG_mixup){
      if(response){
         switch(listitem){
         case 0:
         {
		 }

         case 1: 
         {
		 }

         case 2: 
         {
		 }

         case 3:
         {
		 }

         case 4:
         {
         }
         
         case 5:
         {
		 }
         case 6:
         {
         }

         case 7:
         {
         }

         case 8:
         {
         }
     }
  }
}


but i don't know how to add teleports dialog ids here :/

here is my teleport list id : DIALOG_Teleports

i try showplayerdialog but i was fail
Reply
#2

sorry for double post ?but anyone can help me
Reply
#3

Quote:
Originally Posted by Saleem
Посмотреть сообщение
sorry for double post ?but anyone can help me
Try in dialog ids place wrote nummber not text..
Reply
#4

i don't get it !

can you explain more
Reply
#5

Here:
Код:
 ShowPlayerDialog( playerid, DIALOG_mixup, DIALOG_STYLE_LIST ,
The DIALOG_mixup rename it (example) 34

Like this:
Код:
ShowPlayerDialog( playerid, 34, DIALOG_STYLE_LIST , "Whole Teleports", StrF, "OK", "CANCEL" );
And same here:
Код:
if(dialogid == 34){
Try like this!
Reply
#6

any other way ? when i use use numbers on dialog menu i got some bugs !
Reply
#7

Quote:
Originally Posted by Saleem
Посмотреть сообщение
any other way ? when i use use numbers on dialog menu i got some bugs !
dunno then
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)