[Tutorial] Dialogs Usages
#4

Quote:

You will always need to start from "if(listitem == 0)"

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 equals:
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,
Quote:

Register/login sistem by Kwarde
http://forum.sa-mp.com/showthread.ph...OG_STYLE_INPUT
Eh that's not a register/login system. That are "dialog tips"
But this is a nice tutorial though
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)