OnDialogResponse

Započeo toncikica, Avgust 30, 2023, 17:02:35 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): error 040: duplicate "case" label (value 1), non stop mi izbacuje ovaj error, mislio sam da nisam mozda negdje zatvorio {}, ali sve je uredno, ubacivo sam u sublime text, jer tamo pokazuje ove zagrade {}, ali sve je kako treba, ne znam kako da rjesim.
Deo skripte: [pawn]
                case DIALOG_RENTVREME:
      {
         if(!response) return 1;
         if(response)
         {
            new i = GetNearestRent(playerid);
            if(RentOdabir[ playerid ] == 1)
            {
               new vreme;
               if(GetPlayerMoney(playerid) < RentVreme[ playerid ]*100) return SendClientMessage(playerid, 0x0077C7FF, "[ERROR] {FFFFFF}Nemate dovoljno novca.");
               if(sscanf(inputtext, "d", vreme)) return ShowPlayerDialog(playerid, DIALOG_RENTVREME, DIALOG_STYLE_INPUT, "{0077C7}Iznamljivanje {FFFFFF}vozila","{FFFFFF}Unesite vreme na koliko ce te iznajmiti vozilo.\nMinimalno vreme - 1 minut.\nMaksimalno vreme - 30 minuta.\nCena - 1 minut = 100$","U redu","Izlaz");
               if(vreme < 1 || vreme > 30) return ShowPlayerDialog(playerid, DIALOG_RENTVREME, DIALOG_STYLE_INPUT, "{0077C7}Iznamljivanje {FFFFFF}vozila","{FFFFFF}Unesite vreme na koliko ce te iznajmiti vozilo.\nMinimalno vreme - 1 minut.\nMaksimalno vreme - 30 minuta.\nCena - 1 minut = 100$","U redu","Izlaz");
               RentVreme[ playerid ] = vreme;
               RentVeh[ playerid ] = CreateVehicle(405, RentInfo[ i ][ rentX ]+2, RentInfo[ i ][ rentY ]+2, RentInfo[ i ][ rentZ ], 0.0, 1, 1, -1);
               PutPlayerInVehicle(playerid, RentVeh[ playerid ], 0);
               IznajmioVozilo[ playerid ] = GetPlayerVehicleID(playerid);
               GivePlayerMoney(playerid, -RentVreme[ playerid ]*100);
               RentTimer[ playerid ] = SetTimerEx("TimerRent", 60000, true, "i", playerid);
               SendClientMessage(playerid, 0x0077C7FF, "[RENT] {FFFFFF}Uspesno ste iznajmili vozilo.");
               RentVehLabel[ RentVeh[ playerid ] ] = Create3DTextLabel("[RENTANO VOZILO]", 0x0077C7FF, RentInfo[ i ][ rentX ]+2, RentInfo[ i ][ rentY ]+2, RentInfo[ i ][ rentZ ], 10.0, 0, 0);
               Attach3DTextLabelToVehicle(RentVehLabel[ RentVeh[ playerid ] ], RentVeh[ playerid ], 0.0, 0.0, 0.0);
               TipVozila[ RentVeh[ playerid ] ] = 1; // 1 - Rent Vozilo
            }
            else if(RentOdabir[ playerid ] == 2)
            {
               new vreme;
               if(GetPlayerMoney(playerid) < RentVreme[ playerid ]*70) return SendClientMessage(playerid, 0x0077C7FF, "[ERROR] {FFFFFF}Nemate dovoljno novca.");
               if(sscanf(inputtext, "d", vreme)) return ShowPlayerDialog(playerid, DIALOG_RENTVREME, DIALOG_STYLE_INPUT, "{0077C7}Iznamljivanje {FFFFFF}vozila","{FFFFFF}Unesite vreme na koliko ce te iznajmiti vozilo.\nMinimalno vreme - 1 minut.\nMaksimalno vreme - 30 minuta.\nCena - 1 minut = 70$","U redu","Izlaz");
               if(vreme < 1 || vreme > 30) return ShowPlayerDialog(playerid, DIALOG_RENTVREME, DIALOG_STYLE_INPUT, "{0077C7}Iznamljivanje {FFFFFF}vozila","{FFFFFF}Unesite vreme na koliko ce te iznajmiti vozilo.\nMinimalno vreme - 1 minut.\nMaksimalno vreme - 30 minuta.\nCena - 1 minut = 70$","U redu","Izlaz");
               RentVreme[ playerid ] = vreme;
               RentVeh[ playerid ] = CreateVehicle(462, RentInfo[ i ][ rentX ]+2, RentInfo[ i ][ rentY ]+2, RentInfo[ i ][ rentZ ], 0.0, 1, 1, -1);
               PutPlayerInVehicle(playerid, RentVeh[ playerid ], 0);
               IznajmioVozilo[ playerid ] = GetPlayerVehicleID(playerid);
               GivePlayerMoney(playerid, -RentVreme[ playerid ]*70);
               RentTimer[ playerid ] = SetTimerEx("TimerRent", 60000, true, "i", playerid);
               SendClientMessage(playerid, 0x0077C7FF, "[RENT] {FFFFFF}Uspesno ste iznajmili vozilo.");
               RentVehLabel[ RentVeh[ playerid ] ] = Create3DTextLabel("[RENTANO VOZILO]", 0x0077C7FF, RentInfo[ i ][ rentX ]+2, RentInfo[ i ][ rentY ]+2, RentInfo[ i ][ rentZ ], 10.0, 0, 0);
               Attach3DTextLabelToVehicle(RentVehLabel[ RentVeh[ playerid ] ], RentVeh[ playerid ], 0.0, 0.0, 0.0);
               TipVozila[ RentVeh[ playerid ] ] = 1; // 1 - Rent Vozilo
            }
         }
      }[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [pawn]/[/pawn]
Slika/video ingame problema(obavezno ako je ingame problem):/

Citat: toncikica poslato Avgust 30, 2023, 17:02:35 POSLE PODNE
Problem(error/warning): error 040: duplicate "case" label (value 1), non stop mi izbacuje ovaj error, mislio sam da nisam mozda negdje zatvorio {}, ali sve je uredno, ubacivo sam u sublime text, jer tamo pokazuje ove zagrade {}, ali sve je kako treba, ne znam kako da rjesim.
Deo skripte: [pawn]
                case DIALOG_RENTVREME:
      {
         if(!response) return 1;
         if(response)
         {
            new i = GetNearestRent(playerid);
            if(RentOdabir[ playerid ] == 1)
            {
               new vreme;
               if(GetPlayerMoney(playerid) < RentVreme[ playerid ]*100) return SendClientMessage(playerid, 0x0077C7FF, "[ERROR] {FFFFFF}Nemate dovoljno novca.");
               if(sscanf(inputtext, "d", vreme)) return ShowPlayerDialog(playerid, DIALOG_RENTVREME, DIALOG_STYLE_INPUT, "{0077C7}Iznamljivanje {FFFFFF}vozila","{FFFFFF}Unesite vreme na koliko ce te iznajmiti vozilo.\nMinimalno vreme - 1 minut.\nMaksimalno vreme - 30 minuta.\nCena - 1 minut = 100$","U redu","Izlaz");
               if(vreme < 1 || vreme > 30) return ShowPlayerDialog(playerid, DIALOG_RENTVREME, DIALOG_STYLE_INPUT, "{0077C7}Iznamljivanje {FFFFFF}vozila","{FFFFFF}Unesite vreme na koliko ce te iznajmiti vozilo.\nMinimalno vreme - 1 minut.\nMaksimalno vreme - 30 minuta.\nCena - 1 minut = 100$","U redu","Izlaz");
               RentVreme[ playerid ] = vreme;
               RentVeh[ playerid ] = CreateVehicle(405, RentInfo[ i ][ rentX ]+2, RentInfo[ i ][ rentY ]+2, RentInfo[ i ][ rentZ ], 0.0, 1, 1, -1);
               PutPlayerInVehicle(playerid, RentVeh[ playerid ], 0);
               IznajmioVozilo[ playerid ] = GetPlayerVehicleID(playerid);
               GivePlayerMoney(playerid, -RentVreme[ playerid ]*100);
               RentTimer[ playerid ] = SetTimerEx("TimerRent", 60000, true, "i", playerid);
               SendClientMessage(playerid, 0x0077C7FF, "[RENT] {FFFFFF}Uspesno ste iznajmili vozilo.");
               RentVehLabel[ RentVeh[ playerid ] ] = Create3DTextLabel("[RENTANO VOZILO]", 0x0077C7FF, RentInfo[ i ][ rentX ]+2, RentInfo[ i ][ rentY ]+2, RentInfo[ i ][ rentZ ], 10.0, 0, 0);
               Attach3DTextLabelToVehicle(RentVehLabel[ RentVeh[ playerid ] ], RentVeh[ playerid ], 0.0, 0.0, 0.0);
               TipVozila[ RentVeh[ playerid ] ] = 1; // 1 - Rent Vozilo
            }
            else if(RentOdabir[ playerid ] == 2)
            {
               new vreme;
               if(GetPlayerMoney(playerid) < RentVreme[ playerid ]*70) return SendClientMessage(playerid, 0x0077C7FF, "[ERROR] {FFFFFF}Nemate dovoljno novca.");
               if(sscanf(inputtext, "d", vreme)) return ShowPlayerDialog(playerid, DIALOG_RENTVREME, DIALOG_STYLE_INPUT, "{0077C7}Iznamljivanje {FFFFFF}vozila","{FFFFFF}Unesite vreme na koliko ce te iznajmiti vozilo.\nMinimalno vreme - 1 minut.\nMaksimalno vreme - 30 minuta.\nCena - 1 minut = 70$","U redu","Izlaz");
               if(vreme < 1 || vreme > 30) return ShowPlayerDialog(playerid, DIALOG_RENTVREME, DIALOG_STYLE_INPUT, "{0077C7}Iznamljivanje {FFFFFF}vozila","{FFFFFF}Unesite vreme na koliko ce te iznajmiti vozilo.\nMinimalno vreme - 1 minut.\nMaksimalno vreme - 30 minuta.\nCena - 1 minut = 70$","U redu","Izlaz");
               RentVreme[ playerid ] = vreme;
               RentVeh[ playerid ] = CreateVehicle(462, RentInfo[ i ][ rentX ]+2, RentInfo[ i ][ rentY ]+2, RentInfo[ i ][ rentZ ], 0.0, 1, 1, -1);
               PutPlayerInVehicle(playerid, RentVeh[ playerid ], 0);
               IznajmioVozilo[ playerid ] = GetPlayerVehicleID(playerid);
               GivePlayerMoney(playerid, -RentVreme[ playerid ]*70);
               RentTimer[ playerid ] = SetTimerEx("TimerRent", 60000, true, "i", playerid);
               SendClientMessage(playerid, 0x0077C7FF, "[RENT] {FFFFFF}Uspesno ste iznajmili vozilo.");
               RentVehLabel[ RentVeh[ playerid ] ] = Create3DTextLabel("[RENTANO VOZILO]", 0x0077C7FF, RentInfo[ i ][ rentX ]+2, RentInfo[ i ][ rentY ]+2, RentInfo[ i ][ rentZ ], 10.0, 0, 0);
               Attach3DTextLabelToVehicle(RentVehLabel[ RentVeh[ playerid ] ], RentVeh[ playerid ], 0.0, 0.0, 0.0);
               TipVozila[ RentVeh[ playerid ] ] = 1; // 1 - Rent Vozilo
            }
         }
      }[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [pawn]/[/pawn]
Slika/video ingame problema(obavezno ako je ingame problem):/
A gdje ti je taj error da kod tj dio koda gdje baca taj error

Citat: toncikica poslato Avgust 30, 2023, 17:02:35 POSLE PODNE
Problem(error/warning): error 040: duplicate "case" label (value 1), non stop mi izbacuje ovaj error, mislio sam da nisam mozda negdje zatvorio {}, ali sve je uredno, ubacivo sam u sublime text, jer tamo pokazuje ove zagrade {}, ali sve je kako treba, ne znam kako da rjesim.
Deo skripte: [pawn]
                case DIALOG_RENTVREME:
      {
         if(!response) return 1;
         if(response)
         {
            new i = GetNearestRent(playerid);
            if(RentOdabir[ playerid ] == 1)
            {
               new vreme;
               if(GetPlayerMoney(playerid) < RentVreme[ playerid ]*100) return SendClientMessage(playerid, 0x0077C7FF, "[ERROR] {FFFFFF}Nemate dovoljno novca.");
               if(sscanf(inputtext, "d", vreme)) return ShowPlayerDialog(playerid, DIALOG_RENTVREME, DIALOG_STYLE_INPUT, "{0077C7}Iznamljivanje {FFFFFF}vozila","{FFFFFF}Unesite vreme na koliko ce te iznajmiti vozilo.\nMinimalno vreme - 1 minut.\nMaksimalno vreme - 30 minuta.\nCena - 1 minut = 100$","U redu","Izlaz");
               if(vreme < 1 || vreme > 30) return ShowPlayerDialog(playerid, DIALOG_RENTVREME, DIALOG_STYLE_INPUT, "{0077C7}Iznamljivanje {FFFFFF}vozila","{FFFFFF}Unesite vreme na koliko ce te iznajmiti vozilo.\nMinimalno vreme - 1 minut.\nMaksimalno vreme - 30 minuta.\nCena - 1 minut = 100$","U redu","Izlaz");
               RentVreme[ playerid ] = vreme;
               RentVeh[ playerid ] = CreateVehicle(405, RentInfo[ i ][ rentX ]+2, RentInfo[ i ][ rentY ]+2, RentInfo[ i ][ rentZ ], 0.0, 1, 1, -1);
               PutPlayerInVehicle(playerid, RentVeh[ playerid ], 0);
               IznajmioVozilo[ playerid ] = GetPlayerVehicleID(playerid);
               GivePlayerMoney(playerid, -RentVreme[ playerid ]*100);
               RentTimer[ playerid ] = SetTimerEx("TimerRent", 60000, true, "i", playerid);
               SendClientMessage(playerid, 0x0077C7FF, "[RENT] {FFFFFF}Uspesno ste iznajmili vozilo.");
               RentVehLabel[ RentVeh[ playerid ] ] = Create3DTextLabel("[RENTANO VOZILO]", 0x0077C7FF, RentInfo[ i ][ rentX ]+2, RentInfo[ i ][ rentY ]+2, RentInfo[ i ][ rentZ ], 10.0, 0, 0);
               Attach3DTextLabelToVehicle(RentVehLabel[ RentVeh[ playerid ] ], RentVeh[ playerid ], 0.0, 0.0, 0.0);
               TipVozila[ RentVeh[ playerid ] ] = 1; // 1 - Rent Vozilo
            }
            else if(RentOdabir[ playerid ] == 2)
            {
               new vreme;
               if(GetPlayerMoney(playerid) < RentVreme[ playerid ]*70) return SendClientMessage(playerid, 0x0077C7FF, "[ERROR] {FFFFFF}Nemate dovoljno novca.");
               if(sscanf(inputtext, "d", vreme)) return ShowPlayerDialog(playerid, DIALOG_RENTVREME, DIALOG_STYLE_INPUT, "{0077C7}Iznamljivanje {FFFFFF}vozila","{FFFFFF}Unesite vreme na koliko ce te iznajmiti vozilo.\nMinimalno vreme - 1 minut.\nMaksimalno vreme - 30 minuta.\nCena - 1 minut = 70$","U redu","Izlaz");
               if(vreme < 1 || vreme > 30) return ShowPlayerDialog(playerid, DIALOG_RENTVREME, DIALOG_STYLE_INPUT, "{0077C7}Iznamljivanje {FFFFFF}vozila","{FFFFFF}Unesite vreme na koliko ce te iznajmiti vozilo.\nMinimalno vreme - 1 minut.\nMaksimalno vreme - 30 minuta.\nCena - 1 minut = 70$","U redu","Izlaz");
               RentVreme[ playerid ] = vreme;
               RentVeh[ playerid ] = CreateVehicle(462, RentInfo[ i ][ rentX ]+2, RentInfo[ i ][ rentY ]+2, RentInfo[ i ][ rentZ ], 0.0, 1, 1, -1);
               PutPlayerInVehicle(playerid, RentVeh[ playerid ], 0);
               IznajmioVozilo[ playerid ] = GetPlayerVehicleID(playerid);
               GivePlayerMoney(playerid, -RentVreme[ playerid ]*70);
               RentTimer[ playerid ] = SetTimerEx("TimerRent", 60000, true, "i", playerid);
               SendClientMessage(playerid, 0x0077C7FF, "[RENT] {FFFFFF}Uspesno ste iznajmili vozilo.");
               RentVehLabel[ RentVeh[ playerid ] ] = Create3DTextLabel("[RENTANO VOZILO]", 0x0077C7FF, RentInfo[ i ][ rentX ]+2, RentInfo[ i ][ rentY ]+2, RentInfo[ i ][ rentZ ], 10.0, 0, 0);
               Attach3DTextLabelToVehicle(RentVehLabel[ RentVeh[ playerid ] ], RentVeh[ playerid ], 0.0, 0.0, 0.0);
               TipVozila[ RentVeh[ playerid ] ] = 1; // 1 - Rent Vozilo
            }
         }
      }[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [pawn]/[/pawn]
Slika/video ingame problema(obavezno ako je ingame problem):/
Negde u OnDialogResponse vec imas DIALOG_RENTVREME. Vidi gde je i resi to.
Aj napuni pun i vozi odavde,
na autoput u najveci krug,
da najbolje razmislim ko mi je drug.

Citat: ivanboskic poslato Avgust 30, 2023, 17:07:39 POSLE PODNE
A gdje ti je taj error da kod tj dio koda gdje baca taj error
Na pocetku
[pawn]case DIALOG_RENTVREME:[/pawn]
Evo citav OnDialogResponse
[pawn]public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
   switch(dialogid)
   {
       case DIALOG_REGISTER:
       {
          if(!response) return Kick(playerid);
          if(response)
          {
              if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "{0066FF}( REG ): {FFFFFF}Register", "Unesite vasu lozinku:", "Registruj se", "Odustani");
              new INI:File = INI_Open(UserPath(playerid));
              INI_SetTag(File, "data");
              INI_WriteInt(File, "Lozinka", udb_hash(inputtext));
              INI_WriteInt(File, "Novac", 50000);
              INI_WriteInt(File, "Level", 2);
              INI_WriteInt(File, "Respekti", 0);
              INI_WriteInt(File, "PRespekti", 8);
              INI_WriteInt(File, "Admin", 0);
               INI_WriteInt(File, "Skin", 26);
               INI_WriteInt(File, "Drzava", 0);
               INI_WriteInt(File, "Godine", 0);
               INI_WriteInt(File, "Pol", 0);
               INI_WriteInt(File, "Email", 0);
                INI_WriteInt(File, "Registrovan", 0);
              INI_Close(File);
              GivePlayerMoney(playerid, 50000);
              PlayerInfo[playerid][pLevel] = 2;
              ShowPlayerDialog( playerid, DIALOG_POL, DIALOG_STYLE_LIST, "{FFFFFF}Jeste li Musko ili Zensko?", "{0080C0}- {FFFFFF}Musko\n{0080C0}- {FFFFFF}Zensko", "Dalje", "Odustani");
         }
       }
       case DIALOG_LOGIN:
       {
           if(!response) return Kick(playerid);
          if(response)
          {
              if(udb_hash(inputtext) == PlayerInfo[playerid][pLozinka])
              {
                  INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra=true, .extra=playerid);
                  SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
                  GivePlayerMoney(playerid, PlayerInfo[playerid][pNovac]);
                  SetSpawnInfo( playerid, 0, 26, 397.2974, -1531.5791, 32.2734, 224.6556, 0, 0, 0, 0, 0, 0);
                 SpawnPlayer(playerid);
                 TogglePlayerSpectating(playerid, 0);
                 SetCameraBehindPlayer(playerid);
            }
              else
              {
                  ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "{0066FF}( LOGIN ): {FFFFFF}Login", "Unesite vasu lozinku:", "Prijavi se", "Odustani");
              }
              return 1;
          }
       }
       case DIALOG_AKODP:
       {
         if( !response ) return true;
         if( response )
         {
             if( PlayerInfo[ playerid ][ pAKod ] == strval( inputtext ) && !isnull( inputtext ))
            {
                  if( !AdminDuty[ playerid ])
                  {
            
                  SetPlayerHealth( playerid, 999999 );
                  SetPlayerArmour( playerid, 999999 );
                  SetPlayerSkin( playerid, 294 );
                  AdminDuty[playerid] = 1;
                      format( globalstring, sizeof( globalstring ), "{0066FF}U A R E N A > {FFFFFF}Admin {0066FF}%s {FFFFFF}je {0066FF}na duznosti, {FFFFFF}za pomoc /pitaj", GetName( playerid ));
                  AdminPoruka( -1,globalstring );
               }
               }
                 }
           }
      case DIALOG_POL:
      {
         if(!response) return Kick(playerid);
         if(response)
         {
            switch( listitem )
            {
         
               case 0:
               {
                  Info( playerid, "U redu, znaci musko ste !");
                  PlayerInfo[playerid][pPol] = 1;
                  PlayerInfo[playerid][pSkin] = 26;
                  ShowPlayerDialog(playerid, DIALOG_GODINE, DIALOG_STYLE_INPUT, "{FFFFFF}Koliko imate godina?", "{FF8000}U prazno polje ispod upisi koliko imas godina\n\n{FFFFFF}Godine upisi brojem\n{FF007F}Nemojte ici ispod 7 i vise od 60!", "Dalje", "Odustani");
               }
               case 1:
               {
                  Info( playerid, "U redu,znaci zensko ste !");
                  PlayerInfo[playerid][pPol] = 2;
                  PlayerInfo[playerid][pSkin] = 24;
                  ShowPlayerDialog(playerid, DIALOG_GODINE, DIALOG_STYLE_INPUT, "{FFFFFF}Koliko imate godina?", "{FF8000}U prazno polje ispod upisi koliko imas godina\n\n{FFFFFF}Godine upisi brojem\n{FF007F}Nemojte ici ispod 7 i vise od 60!", "Dalje", "Odustani");
               }
            }
         }
      }
      case DIALOG_GODINE:
      {
         if(!response) return Kick(playerid);
         if(response)
         {
               new godine;
             godine = strval(inputtext);
               if(godine < 7 || godine > 60)
              {

               GRESKA(playerid, "Ne mozete ici manje od 7 i vise od 60 !");
               ShowPlayerDialog(playerid, DIALOG_GODINE, DIALOG_STYLE_INPUT, "{FFFFFF}Koliko imate godina?", "{FF8000}U prazno polje ispod upisi koliko imas godina\n\n{FFFFFF}Godine upisi brojem\n{FF007F}Nemojte ici ispod 7 i vise od 60!", "Dalje", "Odustani");
               return 1;
            }
            new string[128];
            PlayerInfo[playerid][pGodine] = strval(inputtext);
            format(string,sizeof(string),"{DCF04F}(LOG/REG): {FFFFFF}U redu,znaci imate %d godina !",PlayerInfo[playerid][pGodine]);
            SCM(playerid,-1,string);
            ShowPlayerDialog(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT, "{FFFFFF}Email", "{FFFFFF}Unos email-a\n{FF8000}U prazno polje ispod unesite vasu email adresu\n\n{FFFFFF}Zamolili bih vas da unesete tacan email", "Dalje", "Odustani");
         }
       }
       case DIALOG_EMAIL:
      {
          if(!response) return Kick(playerid);
         if(response)
         {
            new emailp = strfind(inputtext, "@", true);
               if(emailp == -1)
              {
               GRESKA(playerid, "Netacan email | Upisite tacnu email adresu !");
                ShowPlayerDialog(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT, "{FFFFFF}Email", "{FFFFFF}Unos email-a\n{FF8000}U prazno polje ispod unesite vasu email adresu\n\n{FFFFFF}Zamolili bih vas da unesete tacan email", "Dalje", "Odustani");
               return 1;
            }
            new emailp2 = strfind(inputtext, ".", true);
            if(emailp2 == -1)
              {
                 GRESKA(playerid, "Netacan email | Upisite tacnu email adresu !");
                ShowPlayerDialog(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT, "{FFFFFF}Email", "{FFFFFF}Unos email-a\n{FF8000}U prazno polje ispod unesite vasu email adresu\n\n{FFFFFF}Zamolili bih vas da unesete tacan email", "Dalje", "Odustani");
               return 1;
            }
            new string[128];
            new INI:File = INI_Open(UserPath(playerid));
               INI_SetTag(File,"data");
               INI_WriteString(File, "Email", inputtext);
            format(string, sizeof(string), "%s", inputtext);
            PlayerInfo[playerid][pEmail] = string;
            INI_Close(File);
            format(string,sizeof(string),"{DCF04F}(LOG/REG): {FFFFFF}U redu,vas email je | %s",inputtext);
            SCM(playerid,-1,string);
            ShowPlayerDialog(playerid, DIALOG_DRZAVA, DIALOG_STYLE_LIST, "{FFFFFF}Odakle ste ?", "{0080C0}- {FFFFFF}Srbija\n{0080C0}- {FFFFFF}Bosna i Hercegovina\n{0080C0}- {FFFFFF}Republika Srpska\n{0080C0}- {FFFFFF}Crna Gora\n{0080C0}- {FFFFFF}Hrvatska\n{0080C0}- {FFFFFF}Makedonija\n{0080C0}- {FFFFFF}Slovenija\n{0080C0}- {FFFFFF}Ostalo", "Dalje", "Odustani");
         }
      }
      case DIALOG_DRZAVA:
      {
         if(!response) return Kick(playerid);
         if(response)
         {
            switch( listitem )
            {
         
               case 0:
               {
                  PlayerInfo[playerid][pDrzava] = 1; //Srbija
                  new atext[20];
                  if(PlayerInfo[playerid][pPol] == 1) { atext = "Musko"; }
                  else if(PlayerInfo[playerid][pPol] == 2) { atext = "Zensko"; }
                  new otext[20];
                  if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
                  else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
                  else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
                  else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
                  else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
                  new uspesnareg[400];
                  format(uspesnareg,sizeof(uspesnareg),"{FFFFFF}Uspesno ste popunili informacije\n\n{FF007F}Vase Ime: {FFFFFF}%s\n{FF007F}Godine: {FFFFFF}%d\n{FF007F}Pol: {FFFFFF}%s\n{FF007F}Drzava: {FFFFFF}%s\n\n{FF8000}Email: {FFFFFF}%s\n{FF8000}Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",GetName(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
                  ShowPlayerDialog(playerid,DIALOG_USPJESNO,DIALOG_STYLE_MSGBOX,"{FF007F}Uspesna registracija",uspesnareg,"Dalje","Izadji");
                  Info(playerid, "U redu,znaci iz Srbije ste !");
                  SetSpawnInfo( playerid, 0, 26, 397.2974, -1531.5791, 32.2734, 224.6556, 0, 0, 0, 0, 0, 0);
                  SetPlayerSkin( playerid, PlayerInfo[ playerid ][ pSkin ]);
                    TogglePlayerSpectating(playerid, 0);
                      SetCameraBehindPlayer(playerid);
                    SpawnPlayer(playerid);
               }
               case 1:
               {
                  PlayerInfo[playerid][pDrzava] = 2; //Bosna
                  new atext[20];
                  if(PlayerInfo[playerid][pPol] == 1) { atext = "Musko"; }
                  else if(PlayerInfo[playerid][pPol] == 2) { atext = "Zensko"; }
                  new otext[20];
                  if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
                  else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
                  else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
                  else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
                  else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
                  new uspesnareg[400];
                  format(uspesnareg,sizeof(uspesnareg),"{FFFFFF}Uspesno ste popunili informacije\n\n{FF007F}Vase Ime: {FFFFFF}%s\n{FF007F}Godine: {FFFFFF}%d\n{FF007F}Pol: {FFFFFF}%s\n{FF007F}Drzava: {FFFFFF}%s\n\n{FF8000}Email: {FFFFFF}%s\n{FF8000}Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",GetName(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
                  ShowPlayerDialog(playerid,DIALOG_USPJESNO,DIALOG_STYLE_MSGBOX,"{FF007F}Uspesna registracija",uspesnareg,"Dalje","Izadji");
                  Info(playerid, "U redu,znaci iz Bosne i Hercegovine ste !");
                  SetSpawnInfo( playerid, 0, 26, 397.2974, -1531.5791, 32.2734, 224.6556, 0, 0, 0, 0, 0, 0);
                  SetPlayerSkin( playerid, PlayerInfo[ playerid ][ pSkin ]);
                     TogglePlayerSpectating(playerid, 0);
                   SetCameraBehindPlayer(playerid);
                   SpawnPlayer(playerid);
               }
               case 2:
               {
                  PlayerInfo[playerid][pDrzava] = 3; //Republika Srpska
                  new atext[20];
                  if(PlayerInfo[playerid][pPol] == 1) { atext = "Musko"; }
                  else if(PlayerInfo[playerid][pPol] == 2) { atext = "Zensko"; }
                  new otext[20];
                  if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
                  else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
                  else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
                  else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
                  else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
                  new uspesnareg[400];
                  format(uspesnareg,sizeof(uspesnareg),"{FFFFFF}Uspesno ste popunili informacije\n\n{FF007F}Vase Ime: {FFFFFF}%s\n{FF007F}Godine: {FFFFFF}%d\n{FF007F}Pol: {FFFFFF}%s\n{FF007F}Drzava: {FFFFFF}%s\n\n{FF8000}Email: {FFFFFF}%s\n{FF8000}Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",GetName(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
                  ShowPlayerDialog(playerid,DIALOG_USPJESNO,DIALOG_STYLE_MSGBOX,"{FF007F}Uspesna registracija",uspesnareg,"Dalje","Izadji");
                  Info(playerid, "U redu,znaci iz Republike Srpske ste !");
                  SetSpawnInfo( playerid, 0, 26, 397.2974, -1531.5791, 32.2734, 224.6556, 0, 0, 0, 0, 0, 0);
                  SetPlayerSkin( playerid, PlayerInfo[ playerid ][ pSkin ]);
                     TogglePlayerSpectating(playerid, 0);
                   SetCameraBehindPlayer(playerid);
                   SpawnPlayer(playerid);
               }
               case 3:
               {
                  PlayerInfo[playerid][pDrzava] = 4; // Crna Gora
                  new atext[20];
                  if(PlayerInfo[playerid][pPol] == 1) { atext = "Musko"; }
                  else if(PlayerInfo[playerid][pPol] == 2) { atext = "Zensko"; }
                  new otext[20];
                  if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
                  else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
                  else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
                  else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
                  else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
                  new uspesnareg[400];
                  format(uspesnareg,sizeof(uspesnareg),"{FFFFFF}Uspesno ste popunili informacije\n\n{FF007F}Vase Ime: {FFFFFF}%s\n{FF007F}Godine: {FFFFFF}%d\n{FF007F}Pol: {FFFFFF}%s\n{FF007F}Drzava: {FFFFFF}%s\n\n{FF8000}Email: {FFFFFF}%s\n{FF8000}Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",GetName(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
                  ShowPlayerDialog(playerid,DIALOG_USPJESNO,DIALOG_STYLE_MSGBOX,"{FF007F}Uspesna registracija",uspesnareg,"Dalje","Izadji");
                  Info(playerid, "U redu,znaci iz Crne Gore ste !");
                  SetSpawnInfo( playerid, 0, 26, 397.2974, -1531.5791, 32.2734, 224.6556, 0, 0, 0, 0, 0, 0);
                  SetPlayerSkin( playerid, PlayerInfo[ playerid ][ pSkin ]);
                   TogglePlayerSpectating(playerid, 0);
                    SetCameraBehindPlayer(playerid);
                    SpawnPlayer(playerid);
               }
               case 4:
               {
                  PlayerInfo[playerid][pDrzava] = 5; //Hrvatska
                  new atext[20];
                  if(PlayerInfo[playerid][pPol] == 1) { atext = "Musko"; }
                  else if(PlayerInfo[playerid][pPol] == 2) { atext = "Zensko"; }
                  new otext[20];
                  if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
                  else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
                  else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
                  else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
                  else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
                  new uspesnareg[400];
                  format(uspesnareg,sizeof(uspesnareg),"{FFFFFF}Uspesno ste popunili informacije\n\n{FF007F}Vase Ime: {FFFFFF}%s\n{FF007F}Godine: {FFFFFF}%d\n{FF007F}Pol: {FFFFFF}%s\n{FF007F}Drzava: {FFFFFF}%s\n\n{FF8000}Email: {FFFFFF}%s\n{FF8000}Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",GetName(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
                  ShowPlayerDialog(playerid,DIALOG_USPJESNO,DIALOG_STYLE_MSGBOX,"{FF007F}Uspesna registracija",uspesnareg,"Dalje","Izadji");
                  Info(playerid, "U redu,znaci iz Hrvatske ste !");
                  SetSpawnInfo( playerid, 0, 26, 397.2974, -1531.5791, 32.2734, 224.6556, 0, 0, 0, 0, 0, 0);
                  SetPlayerSkin( playerid, PlayerInfo[ playerid ][ pSkin ]);
                   TogglePlayerSpectating(playerid, 0);
                    SetCameraBehindPlayer(playerid);
                    SpawnPlayer(playerid);
               }
               case 5:
               {
                  PlayerInfo[playerid][pDrzava] = 6; //Makedonija
                  new atext[20];
                  if(PlayerInfo[playerid][pPol] == 1) { atext = "Musko"; }
                  else if(PlayerInfo[playerid][pPol] == 2) { atext = "Zensko"; }
                  new otext[20];
                  if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
                  else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
                  else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
                  else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
                  else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
                  new uspesnareg[400];
                  format(uspesnareg,sizeof(uspesnareg),"{FFFFFF}Uspesno ste popunili informacije\n\n{FF007F}Vase Ime: {FFFFFF}%s\n{FF007F}Godine: {FFFFFF}%d\n{FF007F}Pol: {FFFFFF}%s\n{FF007F}Drzava: {FFFFFF}%s\n\n{FF8000}Email: {FFFFFF}%s\n{FF8000}Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",GetName(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
                  ShowPlayerDialog(playerid,DIALOG_USPJESNO,DIALOG_STYLE_MSGBOX,"{FF007F}Uspesna registracija",uspesnareg,"Dalje","Izadji");
                  Info(playerid, "U redu,znaci iz Makedonije ste !");
                  SetSpawnInfo( playerid, 0, 26, 397.2974, -1531.5791, 32.2734, 224.6556, 0, 0, 0, 0, 0, 0);
                  SetPlayerSkin( playerid, PlayerInfo[ playerid ][ pSkin ]);
                     TogglePlayerSpectating(playerid, 0);
                  SetCameraBehindPlayer(playerid);
                  SpawnPlayer(playerid);
               }
               case 6:
               {
                  PlayerInfo[playerid][pDrzava] = 7; //Slovenija
                  new atext[20];
                  if(PlayerInfo[playerid][pPol] == 1) { atext = "Musko"; }
                  else if(PlayerInfo[playerid][pPol] == 2) { atext = "Zensko"; }
                  new otext[20];
                  if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
                  else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
                  else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
                  else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
                  else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
                  new uspesnareg[400];
                  format(uspesnareg,sizeof(uspesnareg),"{FFFFFF}Uspesno ste popunili informacije\n\n{FF007F}Vase Ime: {FFFFFF}%s\n{FF007F}Pol: {FFFFFF}%s\n{FF007F}Drzava: {FFFFFF}%s\n\n{FF8000}Email: {FFFFFF}%s\n{FF8000}Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",GetName(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
                  ShowPlayerDialog(playerid,DIALOG_USPJESNO,DIALOG_STYLE_MSGBOX,"{FF007F}Uspesna registracija",uspesnareg,"Dalje","Izadji");
                  Info(playerid, "U redu,znaci iz Slovenije ste !");
                  SetSpawnInfo( playerid, 0, 26, 397.2974, -1531.5791, 32.2734, 224.6556, 0, 0, 0, 0, 0, 0);
                  SetPlayerSkin( playerid, PlayerInfo[ playerid ][ pSkin ]);
                     TogglePlayerSpectating(playerid, 0);
                   SetCameraBehindPlayer(playerid);
                   SpawnPlayer(playerid);
               }
               case 7:
               {
                  PlayerInfo[playerid][pDrzava] = 8; //Ostalo
                  new atext[20];
                  if(PlayerInfo[playerid][pPol] == 1) { atext = "Musko"; }
                  else if(PlayerInfo[playerid][pPol] == 2) { atext = "Zensko"; }
                  new otext[20];
                  if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
                  else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
                  else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
                  else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
                  else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
                  else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
                  new uspesnareg[400];
                  format(uspesnareg,sizeof(uspesnareg),"{FFFFFF}Uspesno ste popunili informacije\n\n{FF007F}Vase Ime: {FFFFFF}%s\n{FF007F}Godine: {FFFFFF}%d\n{FF007F}Pol: {FFFFFF}%s\n{FF007F}Drzava: {FFFFFF}%s\n\n{FF8000}Email: {FFFFFF}%s\n{FF8000}Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",GetName(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
                  ShowPlayerDialog(playerid,DIALOG_USPJESNO,DIALOG_STYLE_MSGBOX,"{FF007F}Uspesna registracija",uspesnareg,"Dalje","Izadji");
                  Info(playerid, "U redu,znaci iz neke druge drzave ste !");
                  SetSpawnInfo( playerid, 0, 26, 397.2974, -1531.5791, 32.2734, 224.6556, 0, 0, 0, 0, 0, 0);
                  SetPlayerSkin( playerid, PlayerInfo[ playerid ][ pSkin ]);
                     TogglePlayerSpectating(playerid, 0);
                   SetCameraBehindPlayer(playerid);
                   SpawnPlayer(playerid);
               }
            }
         }
      }
      case DIALOG_OPOSAO:
      {
         if( !response ) return 1;
         if( response )
         {
            switch( listitem )
            {
               case 0:
                  {
                      PlayerInfo[ playerid ][ pPosao ] = 1;
                  SPD( playerid, DIALOG_PROMOTE, DIALOG_STYLE_MSGBOX, "{0066FF}U{FFFFFF}ltimate{0066FF}A{FFFFFF}rena", "{00CCFF}CESTITKE !!!\n{FFFFFF}Uspjesno ste se zaposlili kao Gradjevinar / Malter !\nZelimo vam puno Srece i Uspjeha !!!", "OK", "");
                }
                  case 1:
                 {
                      PlayerInfo[ playerid ][ pPosao ] = 2;
                  SPD( playerid, DIALOG_PROMOTE, DIALOG_STYLE_MSGBOX, "{0066FF}U{FFFFFF}ltimate{0066FF}A{FFFFFF}rena", "{00CCFF}CESTITKE !!!\n{FFFFFF}Uspjesno ste se zaposlili kao Gradjevinar / Prevoznik Betona !\nZelimo vam puno Srece i Uspjeha !!!", "OK", "");
               }
              }
          }
       }
       case DIALOG_RENT:
      {
         if(!response) return 1;
         if(response)
         {
            switch(listitem)
            {
               case 0:
               {
                  RentOdabir[ playerid ] = 1;
                  ShowPlayerDialog(playerid, DIALOG_RENTVREME, DIALOG_STYLE_INPUT, "{0077C7}Iznamljivanje {FFFFFF}vozila","{FFFFFF}Unesite vreme na koliko ce te iznajmiti vozilo.\nMinimalno vreme - 1 minut.\nMaksimalno vreme - 30 minuta.\nCena - 1 minut = 100$","U redu","Izlaz");
               }
               case 1:
               {
                  RentOdabir[ playerid ] = 2;
                  ShowPlayerDialog(playerid, DIALOG_RENTVREME, DIALOG_STYLE_INPUT, "{0077C7}Iznamljivanje {FFFFFF}vozila","{FFFFFF}Unesite vreme na koliko ce te iznajmiti vozilo.\nMinimalno vreme - 1 minut.\nMaksimalno vreme - 30 minuta.\nCena - 1 minut = 70$","U redu","Izlaz");
               }
            }
         }
      }
      case DIALOG_RENTVREME:
      {
      
         if(!response) return 1;
         if(response)
         {
            new i = GetNearestRent(playerid);
            if(RentOdabir[ playerid ] == 1)
            {
               new vreme;
               if(GetPlayerMoney(playerid) < RentVreme[ playerid ]*100) return SendClientMessage(playerid, 0x0077C7FF, "[ERROR] {FFFFFF}Nemate dovoljno novca.");
               if(sscanf(inputtext, "d", vreme)) return ShowPlayerDialog(playerid, DIALOG_RENTVREME, DIALOG_STYLE_INPUT, "{0077C7}Iznamljivanje {FFFFFF}vozila","{FFFFFF}Unesite vreme na koliko ce te iznajmiti vozilo.\nMinimalno vreme - 1 minut.\nMaksimalno vreme - 30 minuta.\nCena - 1 minut = 100$","U redu","Izlaz");
               if(vreme < 1 || vreme > 30) return ShowPlayerDialog(playerid, DIALOG_RENTVREME, DIALOG_STYLE_INPUT, "{0077C7}Iznamljivanje {FFFFFF}vozila","{FFFFFF}Unesite vreme na koliko ce te iznajmiti vozilo.\nMinimalno vreme - 1 minut.\nMaksimalno vreme - 30 minuta.\nCena - 1 minut = 100$","U redu","Izlaz");
               RentVreme[ playerid ] = vreme;
               RentVeh[ playerid ] = CreateVehicle(405, RentInfo[ i ][ rentX ]+2, RentInfo[ i ][ rentY ]+2, RentInfo[ i ][ rentZ ], 0.0, 1, 1, -1);
               PutPlayerInVehicle(playerid, RentVeh[ playerid ], 0);
               IznajmioVozilo[ playerid ] = GetPlayerVehicleID(playerid);
               GivePlayerMoney(playerid, -RentVreme[ playerid ]*100);
               RentTimer[ playerid ] = SetTimerEx("TimerRent", 60000, true, "i", playerid);
               SendClientMessage(playerid, 0x0077C7FF, "[RENT] {FFFFFF}Uspesno ste iznajmili vozilo.");
               RentVehLabel[ RentVeh[ playerid ] ] = Create3DTextLabel("[RENTANO VOZILO]", 0x0077C7FF, RentInfo[ i ][ rentX ]+2, RentInfo[ i ][ rentY ]+2, RentInfo[ i ][ rentZ ], 10.0, 0, 0);
               Attach3DTextLabelToVehicle(RentVehLabel[ RentVeh[ playerid ] ], RentVeh[ playerid ], 0.0, 0.0, 0.0);
               TipVozila[ RentVeh[ playerid ] ] = 1; // 1 - Rent Vozilo
            }
            else if(RentOdabir[ playerid ] == 2)
            {
               new vreme;
               if(GetPlayerMoney(playerid) < RentVreme[ playerid ]*70) return SendClientMessage(playerid, 0x0077C7FF, "[ERROR] {FFFFFF}Nemate dovoljno novca.");
               if(sscanf(inputtext, "d", vreme)) return ShowPlayerDialog(playerid, DIALOG_RENTVREME, DIALOG_STYLE_INPUT, "{0077C7}Iznamljivanje {FFFFFF}vozila","{FFFFFF}Unesite vreme na koliko ce te iznajmiti vozilo.\nMinimalno vreme - 1 minut.\nMaksimalno vreme - 30 minuta.\nCena - 1 minut = 70$","U redu","Izlaz");
               if(vreme < 1 || vreme > 30) return ShowPlayerDialog(playerid, DIALOG_RENTVREME, DIALOG_STYLE_INPUT, "{0077C7}Iznamljivanje {FFFFFF}vozila","{FFFFFF}Unesite vreme na koliko ce te iznajmiti vozilo.\nMinimalno vreme - 1 minut.\nMaksimalno vreme - 30 minuta.\nCena - 1 minut = 70$","U redu","Izlaz");
               RentVreme[ playerid ] = vreme;
               RentVeh[ playerid ] = CreateVehicle(462, RentInfo[ i ][ rentX ]+2, RentInfo[ i ][ rentY ]+2, RentInfo[ i ][ rentZ ], 0.0, 1, 1, -1);
               PutPlayerInVehicle(playerid, RentVeh[ playerid ], 0);
               IznajmioVozilo[ playerid ] = GetPlayerVehicleID(playerid);
               GivePlayerMoney(playerid, -RentVreme[ playerid ]*70);
               RentTimer[ playerid ] = SetTimerEx("TimerRent", 60000, true, "i", playerid);
               SendClientMessage(playerid, 0x0077C7FF, "[RENT] {FFFFFF}Uspesno ste iznajmili vozilo.");
               RentVehLabel[ RentVeh[ playerid ] ] = Create3DTextLabel("[RENTANO VOZILO]", 0x0077C7FF, RentInfo[ i ][ rentX ]+2, RentInfo[ i ][ rentY ]+2, RentInfo[ i ][ rentZ ], 10.0, 0, 0);
               Attach3DTextLabelToVehicle(RentVehLabel[ RentVeh[ playerid ] ], RentVeh[ playerid ], 0.0, 0.0, 0.0);
               TipVozila[ RentVeh[ playerid ] ] = 1; // 1 - Rent Vozilo
            }
         }
      }
   }
   return 1;
}[/pawn]

Verovatno si definisao 2 ili vise dialoga pod isitm ID, to jest 1 u tvom slucaju.
Vidi promeni DIALOG_RENTVREME na neki slobodan index.

Ali generalno odjebi taj nacin totalno, imas EasyDialog ili y_dialogs, funkcionisu ti na princip ZCMD, svaki dialog, jedna poblic funkcija tako da nema spagheti koda. Plus dobijes zastitu od dialog id spoofing za dzabe.

Da nisi definisao dialog pod istim brojem 2x ?
Dugo nisam radio obicne dialoge tako da ne mogu reci sigurno sta je...

Rjesio sam, trebo sam definisat, a ja sam samo enum.
Citat: Sniffie White poslato Avgust 30, 2023, 19:50:57 POSLE PODNE
Verovatno si definisao 2 ili vise dialoga pod isitm ID, to jest 1 u tvom slucaju.
Vidi promeni DIALOG_RENTVREME na neki slobodan index.

Ali generalno odjebi taj nacin totalno, imas EasyDialog ili y_dialogs, funkcionisu ti na princip ZCMD, svaki dialog, jedna poblic funkcija tako da nema spagheti koda. Plus dobijes zastitu od dialog id spoofing za dzabe.
Poslusat cu savjet, hvala svima u svakom slucaju