Quote:
Originally Posted by DanishHaq
That wouldn't work anyway, you need to use your predefined enumerators/variables that you're using to store ranks, example:
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; }
|
I already know that, I just gave an example with ranks.
I want let's say the last dialog to be shown for R3 and above I have to make it Rank >= 4? (As I said it's just an example