01.11.2014, 14:43
Quote:
I think I wrongly forget to write the switch cases, I want it to be like
pawn Код:
|
pawn Код:
switch(dialogid) // this is not necessary, but I use it sometimes
{
case SOME_DIALOG:
{
if(!response) return 1; // if there is no response (esc or button 2), dialog stops here
switch(listitem) // switching through the items on the dialog
{
case 0: // first item on the dialog is here
{
if(/*variable here, example:*/pRank[playerid] == 1) // notice that "Rank 1" will just return the error of undefined symbol 'Rank' and expected zero or something along those lines
{
ShowPlayerDialog(etc. etc. etc.);
}
else if(/*variable here, example:*/pRank[playerid] == 2) // as above
{
ShowPlayerDialog(etc. etc. etc.);
}
}
}
}
return 1;
}