[Tutorial] Dialogs Usages
#5

Quote:
Originally Posted by Kwarde
View Post
Wrong. You can start with 'if(listitem == 1)' or 'if(listitem == 5)'. It doesn't matter with what you start.
Also, you can use:
pawn Code:
switch(listitem)
{
    case 0: //Do something
    case 1: //Do something
    case 2: //Do something
    // Etc
    default: //None of the cases above
}
Which is equal to
pawn Code:
if(listitem == 0) //Do something
if(listitem == 1) //Do something
if(listitem == 2) //Do something
// Etc
if(listitem != 0 && listitem != 1 && listitem != 2) // None of the cases above
Btw,

Eh that's not a register/login system. That are "dialog tips"
But this is a nice tutorial though
Yeah but if they want to make a weapon dialog
They need to start from 0 if they want to get guns from first listitem
Btw thanks
Reply


Messages In This Thread
Dialogs Usages - by Hoss - 27.04.2011, 07:54
Re: Dialogs Usages - by Niki... - 27.04.2011, 08:53
Re: Dialogs Usages - by Markx - 27.04.2011, 08:54
Re: Dialogs Usages - by Kwarde - 27.04.2011, 09:03
Re: Dialogs Usages - by Hoss - 27.04.2011, 09:08
Re: Dialogs Usages - by Kwarde - 27.04.2011, 09:22
Re: Dialogs Usages - by GangsTa_ - 27.04.2011, 10:48
Re: Dialogs Usages - by BASITJALIL - 27.04.2011, 11:22
Re: Dialogs Usages - by Hoss - 29.04.2011, 08:35
Re: Dialogs Usages - by Stigg - 29.04.2011, 09:33

Forum Jump:


Users browsing this thread: 1 Guest(s)