DIALOG_STYLE_LIST Problem -
Saleem - 11.07.2013
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
Re: DIALOG_STYLE_LIST Problem -
Saleem - 11.07.2013
sorry for double post ?but anyone can help me
Re: DIALOG_STYLE_LIST Problem -
DJRebis - 11.07.2013
Quote:
Originally Posted by Saleem
sorry for double post ?but anyone can help me
|
Try in dialog ids place wrote nummber not text..
Re: DIALOG_STYLE_LIST Problem -
Saleem - 11.07.2013
i don't get it !
can you explain more
Re: DIALOG_STYLE_LIST Problem -
DJRebis - 11.07.2013
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:
Try like this!
Re: DIALOG_STYLE_LIST Problem -
Saleem - 11.07.2013
any other way ? when i use use numbers on dialog menu i got some bugs !
Re: DIALOG_STYLE_LIST Problem -
DJRebis - 11.07.2013
Quote:
Originally Posted by Saleem
any other way ? when i use use numbers on dialog menu i got some bugs !
|
dunno then