[Ajuda] Objetos
#5

loose indentation - Mб indentaзгo (de cуdigo).

Linhas quebradas e fora da regra da indentaзгo dos cуdigos.

Бrvore indentalуgica.: (Feita por zSuYaNw)
PHP код:
|
    |
        |
            |
                |
                    |
                        |
                            |
                                |
                            |
                        |
                    |
                |
            |
        |
    |

Agora, um pouco mais explicativo para possнvel compreensгo. (Que no caso, se aplica em pawn):
PHP код:
new Float:var[9][playerid];
if(var[
0][playerid] == 0.0)
{
    if(var[
1][playerid] == 1.1)
    {
        if(var[
2][playerid] == 2.2)
        {
            if(var[
3][playerid] == 3.3)
            {
                if(var[
4][playerid] == 4.4)
                {
                    if(var[
5][playerid] == 5.5)
                    {
                        if(var[
6][playerid] == 6.6)
                        {
                            if(var[
7][playerid] == 7.7)
                            {
                                if(var[
8][playerid] == 8.8)
                                {
                                    
/* Realizaзгo de funзгo apуs cada condicional ser retornada para true. */
                                
}
                            }
                        }
                    }
                }
            }
        }
    }

Reply


Messages In This Thread
Objetos - by VF46 - 22.01.2018, 17:47
Re: Objetos - by SpikeCompiler - 22.01.2018, 18:43
Re: Objetos - by VF46 - 22.01.2018, 19:11
Re: Objetos - by Lovejoy - 22.01.2018, 20:20
Re: Objetos - by Cycle - 22.01.2018, 23:00

Forum Jump:


Users browsing this thread: 1 Guest(s)