SA-MP Forums Archive
explain pls - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: explain pls (/showthread.php?tid=664059)



explain pls - Heress - 18.02.2019

Hello, can someone explain how works this operator ".." ? I found it on one of scripts. Example of use:

Код:
//DialogResponse
{
        case DIALOG_HOUSE_GUNS_TAKE_AMMO_MIN..DIALOG_HOUSE_GUNS_TAKE_AMMO:
        {
            if(response)
            {



Re: explain pls - Florin48 - 18.02.2019

It's same as
Quote:

case 1 .. 32:

That is, from 1 to 32, the numbers are defined in those names.
Search the gamemode for those names and see what numbers they match.
You can also tell ****** about the switch feature.


Re: explain pls - Heress - 18.02.2019

Quote:
Originally Posted by Florin48
Посмотреть сообщение
It's same as
That is, from 1 to 32, the numbers are defined in those names.
Search the gamemode for those names and see what numbers they match.
You can also tell ****** about the switch feature.
Thank you!


Re: explain pls - Florin48 - 18.02.2019

Quote:
Originally Posted by Heress
Посмотреть сообщение
Thank you!
Good luck still in learning programming.