Errori

Započeo virtuozo, April 29, 2010, 19:56:13 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

virtuozo

if(dialogid == 3) // Spol
{
    if(RegistrationStep[playerid] == 1)
    {
    if(response)
    {
if(listitem == 0) // Musko
    {
        PlayerInfo[playerid][pSex] = 1;
        ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Koliko imate godina?", "10 \n11 \n12 \n13 \n14 \n15 \n16 \n17 \n18 \n11 \n19 \n20 \n21 \n22 \n23 \n24 \n25 \n26 \n27 \n28 \n29 \n30 \n31 \n32 \n33 \n34 \n35 \nVise od 35", "U redu", "Odustani");
        RegistrationStep[playerid] = 2;
    }
    if(listitem == 1) // Zensko
    {
        PlayerInfo[playerid][pSex] = 2;
        ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Koliko imate godina?", "10 \n11 \n12 \n13 \n14 \n15 \n16 \n17 \n18 \n11 \n19 \n20 \n21 \n22 \n23 \n24 \n25 \n26 \n27 \n28 \n29 \n30 \n31 \n32 \n33 \n34 \n35", "U redu", "Odustani");
        RegistrationStep[playerid] = 2;
    }
    if(listitem == 2) // Kick
    {
                    Kick(playerid);
    }
    }
        }
return 1;
}
if(dialogid == 4) // Dob
{
        if(RegistrationStep[playerid] == 2)
    {
            if(response)
    {
        if(listitem == 0)
    {
        PlayerInfo[playerid][pAge] = 9;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 1)
    {
        PlayerInfo[playerid][pAge] = 10;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 2)
    {
        PlayerInfo[playerid][pAge] = 11;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 3)
    {
        PlayerInfo[playerid][pAge] = 12;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 4)
    {
        PlayerInfo[playerid][pAge] = 13;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 5)
    {
        PlayerInfo[playerid][pAge] = 14;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 6)
    {
        PlayerInfo[playerid][pAge] = 15;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
                    }
    if(listitem == 7)
    {
        PlayerInfo[playerid][pAge] = 16;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 8)
    {
        PlayerInfo[playerid][pAge] = 17;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 9)
    {
        PlayerInfo[playerid][pAge] = 18;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 10)
    {
        PlayerInfo[playerid][pAge] = 19;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 11)
    {
        PlayerInfo[playerid][pAge] = 20;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
                if(listitem == 12)
    {
        PlayerInfo[playerid][pAge] = 21;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 13)
    {
        PlayerInfo[playerid][pAge] = 22;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 14)
    {
        PlayerInfo[playerid][pAge] = 23;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 15)
    {
        PlayerInfo[playerid][pAge] = 24;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 16)
    {
        PlayerInfo[playerid][pAge] = 25;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 17)
    {
        PlayerInfo[playerid][pAge] = 26;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 18)
    {
        PlayerInfo[playerid][pAge] = 27;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 19)
    {
        PlayerInfo[playerid][pAge] = 28;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 20)
    {
        PlayerInfo[playerid][pAge] = 29;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 21)
    {
        PlayerInfo[playerid][pAge] = 30;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 22)
    {
        PlayerInfo[playerid][pAge] = 31;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 23)
    {
        PlayerInfo[playerid][pAge] = 32;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 24)
    {
        PlayerInfo[playerid][pAge] = 33;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 25)
    {
        PlayerInfo[playerid][pAge] = 34;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
            }
            if(listitem == 26) // Kick
    {
                    Kick(playerid);
    }
}
}
return 1;
}
if(dialogid == 5) // Drzava
{
    if(RegistrationStep[playerid] == 3)
    {
    if(response)
    {
    if(listitem == 0) // HR
    {
        PlayerInfo[playerid][pOrigin] = 1;
        RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    if(listitem == 1) // SRB
    {
        PlayerInfo[playerid][pOrigin] = 2;
        RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    if(listitem == 2) // Kosovo
    {
        PlayerInfo[playerid][pOrigin] = 3;
        RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    if(listitem == 3) // CG
    {
        PlayerInfo[playerid][pOrigin] = 4;
        RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    if(listitem == 4) // Slovenija
    {
        PlayerInfo[playerid][pOrigin] = 5;
        RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    if(listitem == 5) // BiH
    {
        PlayerInfo[playerid][pOrigin] = 6;
        RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    if(listitem == 6) // Kick
    {
                    Kick(playerid);
    }
    }
        }
return 1;
}
  }
}
return 1;
}




izbacuje 26 errora


C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(2043) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(2047) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(2059) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(2063) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(2067) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(2071) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(2075) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(2079) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(2083) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(2095) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(2099) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(2103) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(2107) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(2111) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(2123) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(2127) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(2131) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(2143) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(2147) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(2151) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(2155) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(2978) : error 004: function "RemoveRoadblock" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(3138) : error 004: function "hotel" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(3149) : error 004: function "hotel" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(3158) : error 004: function "hotel" is not implemented
C:\Users\user7\Desktop\CROELITE\gamemodes\Croelite.pwn(3167) : error 004: function "hotel" is not implemented

a sinko moj gadno si ti nesto zajeba ...prvojeri jesi dobro radio ako nisi onda naÄ'i TuT i pazljivo ubacuj


Posjetite našu Grand Theft Auto IV Multiplayer (IV:MP) zajednicu.

nastoe

Probaj ovo

if(dialogid == 3) // Spol
{
    if(RegistrationStep[playerid] == 1)
    {
    if(response)
    {
if(listitem == 0) // Musko
    {
        PlayerInfo[playerid][pSex] = 1;
        ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Koliko imate godina?", "10 \n11 \n12 \n13 \n14 \n15 \n16 \n17 \n18 \n11 \n19 \n20 \n21 \n22 \n23 \n24 \n25 \n26 \n27 \n28 \n29 \n30 \n31 \n32 \n33 \n34 \n35 \nVise od 35", "U redu", "Odustani");
        RegistrationStep[playerid] = 2;
    }
    if(listitem == 1) // Zensko
    {
        PlayerInfo[playerid][pSex] = 2;
        ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Koliko imate godina?", "10 \n11 \n12 \n13 \n14 \n15 \n16 \n17 \n18 \n11 \n19 \n20 \n21 \n22 \n23 \n24 \n25 \n26 \n27 \n28 \n29 \n30 \n31 \n32 \n33 \n34 \n35", "U redu", "Odustani");
        RegistrationStep[playerid] = 2;
    }
    if(listitem == 2) // Kick
    {
                    Kick(playerid);
    }
          }
    }
if(dialogid == 4) // Dob
{
        if(RegistrationStep[playerid] == 2)
    {
            if(response)
    {
        if(listitem == 0)
    {
        PlayerInfo[playerid][pAge] = 9;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 1)
    {
        PlayerInfo[playerid][pAge] = 10;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 2)
    {
        PlayerInfo[playerid][pAge] = 11;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 3)
    {
        PlayerInfo[playerid][pAge] = 12;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 4)
    {
        PlayerInfo[playerid][pAge] = 13;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 5)
    {
        PlayerInfo[playerid][pAge] = 14;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 6)
    {
        PlayerInfo[playerid][pAge] = 15;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
                    }
    if(listitem == 7)
    {
        PlayerInfo[playerid][pAge] = 16;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 8)
    {
        PlayerInfo[playerid][pAge] = 17;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 9)
    {
        PlayerInfo[playerid][pAge] = 18;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 10)
    {
        PlayerInfo[playerid][pAge] = 19;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 11)
    {
        PlayerInfo[playerid][pAge] = 20;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
                if(listitem == 12)
    {
        PlayerInfo[playerid][pAge] = 21;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 13)
    {
        PlayerInfo[playerid][pAge] = 22;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 14)
    {
        PlayerInfo[playerid][pAge] = 23;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 15)
    {
        PlayerInfo[playerid][pAge] = 24;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 16)
    {
        PlayerInfo[playerid][pAge] = 25;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 17)
    {
        PlayerInfo[playerid][pAge] = 26;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 18)
    {
        PlayerInfo[playerid][pAge] = 27;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 19)
    {
        PlayerInfo[playerid][pAge] = 28;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 20)
    {
        PlayerInfo[playerid][pAge] = 29;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 21)
    {
        PlayerInfo[playerid][pAge] = 30;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 22)
    {
        PlayerInfo[playerid][pAge] = 31;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 23)
    {
        PlayerInfo[playerid][pAge] = 32;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 24)
    {
        PlayerInfo[playerid][pAge] = 33;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 25)
    {
        PlayerInfo[playerid][pAge] = 34;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
            }
            if(listitem == 26) // Kick
    {
                    Kick(playerid);
    }
      }
}
if(dialogid == 5) // Drzava
{
    if(RegistrationStep[playerid] == 3)
    {
    if(response)
    {
    if(listitem == 0) // HR
    {
        PlayerInfo[playerid][pOrigin] = 1;
        RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    if(listitem == 1) // SRB
    {
        PlayerInfo[playerid][pOrigin] = 2;
        RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    if(listitem == 2) // Kosovo
    {
        PlayerInfo[playerid][pOrigin] = 3;
        RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    if(listitem == 3) // CG
    {
        PlayerInfo[playerid][pOrigin] = 4;
        RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    if(listitem == 4) // Slovenija
    {
        PlayerInfo[playerid][pOrigin] = 5;
        RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    if(listitem == 5) // BiH
    {
        PlayerInfo[playerid][pOrigin] = 6;
        RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    if(listitem == 6) // Kick
    {
                    Kick(playerid);
    }
    }
        }
return 1;
}


Neznam dal ce raditi ali uglavnom problem ti je sta stavis previse ili premalo ili drugaciji { ili }

Ispod prvog Kick(playerid); imas jedan bracket viska (bracket = zagrada)

nastoe

Citat: John poslato April 30, 2010, 22:03:53 POSLE PODNE
Ispod prvog Kick(playerid); imas jedan bracket viska (bracket = zagrada)
Popravio sam mu ja taj bracket, i imao je jos nekoliko  ;)

virtuozo

evo vam i cijeli dio pa vidite do cega je



i sa pocetkom od dialoga 1


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new sendername[MAX_PLAYER_NAME];
new string[128];
if(response)
{
if(dialogid == 1 || dialogid == 2)
{
    if(strlen(inputtext))
    {
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
Encrypt(tmppass);
OnPlayerLogin(playerid,tmppass);
}
else
{
new loginstring[128];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname));
format(loginstring,sizeof(loginstring),"POGRESNA SIFRAnUnesena lozinka se ne poklapa sa accountom!",loginname);
ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"Login",loginstring,"Prijava","Izlaz");
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 4) { Ban(playerid); }
}
}
if(dialogid == 2)
{
    if(strlen(inputtext))
    {
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s.ini", sendername);
new File: hFile = fopen(string, io_read);
if (hFile)
{
SendClientMessage(playerid, COLOR_YELLOW, "Ime je vec preuzeto, molimo izaberite neko drugo.");
fclose(hFile);
return 1;
}
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
Encrypt(tmppass);
OnPlayerRegister(playerid,tmppass);
}
else
{
new regstring[128];
new regname[64];
GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),"Dobrodosli, %snVi nemate korisnicki Account/Racun.nUnesite lozinku za register:",regname);
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Register",regstring,"Register","Izlaz");
}
  }
  if(dialogid == 3) // Spol
{
    if(RegistrationStep[playerid] == 1)
    {
    if(response)
    {
if(listitem == 0) // Musko
    {
        PlayerInfo[playerid][pSex] = 1;
        ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Koliko imate godina?", "10 \n11 \n12 \n13 \n14 \n15 \n16 \n17 \n18 \n11 \n19 \n20 \n21 \n22 \n23 \n24 \n25 \n26 \n27 \n28 \n29 \n30 \n31 \n32 \n33 \n34 \n35 \nVise od 35", "U redu", "Odustani");
        RegistrationStep[playerid] = 2;
    }
    if(listitem == 1) // Zensko
    {
        PlayerInfo[playerid][pSex] = 2;
        ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Koliko imate godina?", "10 \n11 \n12 \n13 \n14 \n15 \n16 \n17 \n18 \n11 \n19 \n20 \n21 \n22 \n23 \n24 \n25 \n26 \n27 \n28 \n29 \n30 \n31 \n32 \n33 \n34 \n35", "U redu", "Odustani");
        RegistrationStep[playerid] = 2;
    }
    if(listitem == 2) // Kick
    {
                    Kick(playerid);
    }
          }
    }
if(dialogid == 4) // Dob
{
        if(RegistrationStep[playerid] == 2)
    {
            if(response)
    {
        if(listitem == 0)
    {
        PlayerInfo[playerid][pAge] = 9;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 1)
    {
        PlayerInfo[playerid][pAge] = 10;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 2)
    {
        PlayerInfo[playerid][pAge] = 11;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 3)
    {
        PlayerInfo[playerid][pAge] = 12;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 4)
    {
        PlayerInfo[playerid][pAge] = 13;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 5)
    {
        PlayerInfo[playerid][pAge] = 14;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 6)
    {
        PlayerInfo[playerid][pAge] = 15;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
                    }
    if(listitem == 7)
    {
        PlayerInfo[playerid][pAge] = 16;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 8)
    {
        PlayerInfo[playerid][pAge] = 17;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 9)
    {
        PlayerInfo[playerid][pAge] = 18;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 10)
    {
        PlayerInfo[playerid][pAge] = 19;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 11)
    {
        PlayerInfo[playerid][pAge] = 20;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
                if(listitem == 12)
    {
        PlayerInfo[playerid][pAge] = 21;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 13)
    {
        PlayerInfo[playerid][pAge] = 22;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 14)
    {
        PlayerInfo[playerid][pAge] = 23;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 15)
    {
        PlayerInfo[playerid][pAge] = 24;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 16)
    {
        PlayerInfo[playerid][pAge] = 25;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 17)
    {
        PlayerInfo[playerid][pAge] = 26;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 18)
    {
        PlayerInfo[playerid][pAge] = 27;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 19)
    {
        PlayerInfo[playerid][pAge] = 28;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 20)
    {
        PlayerInfo[playerid][pAge] = 29;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 21)
    {
        PlayerInfo[playerid][pAge] = 30;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 22)
    {
        PlayerInfo[playerid][pAge] = 31;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 23)
    {
        PlayerInfo[playerid][pAge] = 32;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 24)
    {
        PlayerInfo[playerid][pAge] = 33;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 25)
    {
        PlayerInfo[playerid][pAge] = 34;
        ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
            }
            if(listitem == 26) // Kick
    {
                    Kick(playerid);
    }
      }
}
if(dialogid == 5) // Drzava
{
    if(RegistrationStep[playerid] == 3)
    {
    if(response)
    {
    if(listitem == 0) // HR
    {
        PlayerInfo[playerid][pOrigin] = 1;
        RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    if(listitem == 1) // SRB
    {
        PlayerInfo[playerid][pOrigin] = 2;
        RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    if(listitem == 2) // Kosovo
    {
        PlayerInfo[playerid][pOrigin] = 3;
        RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    if(listitem == 3) // CG
    {
        PlayerInfo[playerid][pOrigin] = 4;
        RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    if(listitem == 4) // Slovenija
    {
        PlayerInfo[playerid][pOrigin] = 5;
        RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    if(listitem == 5) // BiH
    {
        PlayerInfo[playerid][pOrigin] = 6;
        RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    if(listitem == 6) // Kick
    {
                    Kick(playerid);
    }
    }
        }
return 1;
}
}
Poslednja Izmena: Maj 01, 2010, 08:02:34 PRE PODNE od fight

Daj postajte plizzzz i meni ovo treba!!!Ajde dobri ljudi pokazite svoju humanost  ;D

virtuozo

i da moram li jos nesto dodavat u GM osim response ako da mozetel mi reci sta

M-Gun

Jesi provjerio sve zagrade ???

napravio sam nisam zagrade fino namjestio hvala puno

virtuozo

radi sve..fala brunoHP mi je pomogao