Prodaj firmu na igraca

Započeo Snike02, Decembar 05, 2017, 16:50:45 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: //
Detaljan opis problema: Pa vadi mi ovo erore a neznam sta je problemac,staveni su u switcha vidite aj
Dio skripte:
Erora
Citat(53786) : error 014: invalid statement; not in switch
(53786) : warning 215: expression has no effect
(53786) : error 001: expected token: ";", but found ":"
(53786) : error 029: invalid expression, assumed zero
(53786) : fatal error 107: too many error messages on one line
CMD za firmu
Citat
CMD:firma(playerid, params[], help)
{

    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Mora da si logovan za da bi koristio komande!");
    if(PI[playerid][pPosedovanjeFirme] == -1) return SCM(playerid,-1, ""JCRVENA"ERROR: "SVCRVENA"Nemate firmu!");
    new imedas[MAX_PLAYER_NAME];
   GetPlayerName(playerid, imedas, sizeof(imedas));
   if(strcmp(FirmaInfo[PI[playerid][pPosedovanjeFirme]][fVlasnik], imedas, true)) return SCM(playerid,-1, ""JCRVENA"ERROR: "SVCRVENA"Ne ste vlasnik na tu firmu!");
   new string1[275], string2[275], string[550];
   format(string1,sizeof(string1),""ZPLAVA"(1). "BELA"Informacije\n"ZPLAVA"(2). "BELA"Otkljuci Firma\n"ZPLAVA"(3). "BELA"Zakljuci Firma\n"ZPLAVA"(4). "BELA"Podigni Novac\n"ZPLAVA"(5). "BELA"Ostavi Novac\n");
   format(string2,sizeof(string2),""ZPLAVA"(6). "BELA"Naracaj Proizvode\n"ZPLAVA"(7). "BELA"Promeni Ime\n"ZPLAVA"(8 ). "BELA"Prodaj Firmu na Drzavu\n"ZPLAVA"(9). "BELA"Postavi Reket\n"ZPLAVA"(10). "BELA"Skini Reket\n"ZPLAVA"(11). "BELA"Prodaj firmu na igraca");
    format(string, sizeof(string), "%s%s", string1, string2);
    SPD(playerid, DIALOG_FIRMA, DIALOG_STYLE_LIST, ""GLAVNA"Firma Opcije", string, "Izaberi", "Izlaz");
   return 1;
}
Case -- OVE [i ] SU SPOJENE

Citat
(53786)case 10:
             {
                    if(PI[playerid][pPosedovanjeFirme] == -1) return SCM(playerid,-1, ""JCRVENA"ERROR: "SVCRVENA"Nemate firmu!");
                       if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[i ][fUlazX], FirmaInfo[i ][fUlazY], FirmaInfo[i ][fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Niste ispred vasu firmu!");
                    SPD(playerid, DIALOG_PRFIRMA, DIALOG_STYLE_INPUT, "Prodazba na firmu", ""CRVENA"Vnesete ID igraca koji ocete da mu prodati firmu...", "Potvrdi", "Izlaz");
              }
Neke slike/video za lakse dobivanje pomoci(neobavezno)://///

Probaj umjesto
[pawn] case 10: [/pawn]
staviti
[pawn] case 10; [/pawn]




Evo ti celi kod
[pawn]if(dialogid == DIALOG_FIRMA && response)
   {
      if(!response) return 1;
      if(response)
      {
         if(PI[playerid][pPosedovanjeFirme] == -1) return SCM(playerid,-1, ""JCRVENA"ERROR: "SVCRVENA"Nemate firma!");
         new i = PI[playerid][pPosedovanjeFirme];
         switch(listitem)
         {
            case 0:
            {
                if(FirmaInfo[fVrsta] == VRSTA_SBIZZ)
                {
                   if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[fUlazX], FirmaInfo[fUlazY], FirmaInfo[fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste pred vasata firma!");
                  new string1[275], string2[275], string[550],z[3]; if(FirmaInfo[fZatvoreno] == 1) z = "Da"; else z = "Ne";
                  format(string1,sizeof(string1),""BELA"_______________________________________\n\n"ZPLAVA"Vlasnik na Firma: "CRVENA"%s\n"ZPLAVA"Ime na Firma: "CRVENA"%s\n"ZPLAVA"Reket: "CRVENA"%s\n"ZPLAVA"Level: "BELA"%d\n"ZPLAVA"Cena: "BELA"%d\n",FirmaInfo[fVlasnik],FirmaInfo[fNaziv],FirmaInfo[fIznuda],FirmaInfo[fLevel],FirmaInfo[fCena]);
                  format(string2,sizeof(string2),""ZPLAVA"ID: "BELA"%d\n"ZPLAVA"Zatvoreno: "BELA"%s\n"ZPLAVA"Kasa: "BELA"%d$\n"ZPLAVA"Proizvodi: "BELA"%d/%d\n_______________________________________",i,z,FirmaInfo[fKasa],FirmaInfo[fProizvodi],FirmaInfo[fMaxProizvodi]);
                   format(string, sizeof(string), "%s%s", string1, string2);
                   SPD(playerid, DIALOG_FINFO, DIALOG_STYLE_MSGBOX, ""BELA"Firma Informacii", string, "Ok", "Izlez");
               }
               else
               {
                  if(!IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[fIzlazX], FirmaInfo[fIzlazY], FirmaInfo[fIzlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste vo vasata firma!");
                  new string1[275], string2[275], string[550],z[3]; if(FirmaInfo[fZatvoreno] == 1) z = "Da"; else z = "Ne";
                  format(string1,sizeof(string1),""BELA"_______________________________________\n\n"ZPLAVA"Vlasnik na Firma: "CRVENA"%s\n"ZPLAVA"Ime na Firma: "CRVENA"%s\n"ZPLAVA"Reket: "CRVENA"%s\n"ZPLAVA"Level: "BELA"%d\n"ZPLAVA"Cena: "BELA"%d\n",FirmaInfo[fVlasnik],FirmaInfo[fNaziv],FirmaInfo[fIznuda],FirmaInfo[fLevel],FirmaInfo[fCena]);
                  format(string2,sizeof(string2),""ZPLAVA"ID: "BELA"%d\n"ZPLAVA"Zatvoreno: "BELA"%s\n"ZPLAVA"Kasa: "BELA"%d$\n"ZPLAVA"Proizvodi: "BELA"%d/%d\n_______________________________________",i,z,FirmaInfo[fKasa],FirmaInfo[fProizvodi],FirmaInfo[fMaxProizvodi]);
                   format(string, sizeof(string), "%s%s", string1, string2);
                   SPD(playerid, DIALOG_FINFO, DIALOG_STYLE_MSGBOX, ""BELA"Firma Informacii", string, "Ok", "Izlez");
               }
            }
            case 1:
            {
                if(FirmaInfo[fVrsta] == VRSTA_SBIZZ)
                {
                  if(PI[playerid][pPosedovanjeFirme] == -1) return SCM(playerid,-1, ""JCRVENA"ERROR: "SVCRVENA"Nemate firma!");
                       if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[fUlazX], FirmaInfo[fUlazY], FirmaInfo[fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste pred vasata firma!");
                  if(FirmaInfo[fZatvoreno] == 0) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Vekje e otklucena!");
                  FirmaInfo[fZatvoreno] = 0;
                  SCM(playerid,-1, ""GLAVNA"(EC): "BELA"Firma otklucena!");
                  SacuvajFirmu(i);
               }
               else
               {
                  if(PI[playerid][pPosedovanjeFirme] == -1) return SCM(playerid,-1, ""JCRVENA"ERROR: "SVCRVENA"Nemate firma!");
                       if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[fUlazX], FirmaInfo[fUlazY], FirmaInfo[fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste pred vasata firma!");
                  if(FirmaInfo[fZatvoreno] == 0) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Vekje e otklucena!");
                  FirmaInfo[fZatvoreno] = 0;
                  SCM(playerid,-1, ""GLAVNA"(EC): "BELA"Firma otklucena!");
                  SacuvajFirmu(i);
               }
            }
            case 2:
            {
                if(FirmaInfo[fVrsta] == VRSTA_SBIZZ)
                {
                  if(PI[playerid][pPosedovanjeFirme] == -1) return SCM(playerid,-1, ""JCRVENA"ERROR: "SVCRVENA"Nemate firma!");
                       if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[fUlazX], FirmaInfo[fUlazY], FirmaInfo[fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste pred vasata firma!");
                  if(FirmaInfo[fZatvoreno] == 1) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Vekje e zaklucena!");
                  FirmaInfo[fZatvoreno] = 1;
                  SCM(playerid,-1, ""GLAVNA"(EC): "BELA"Firma zaklucena!");
                  SacuvajFirmu(i);
               }
               else
               {
                  if(PI[playerid][pPosedovanjeFirme] == -1) return SCM(playerid,-1, ""JCRVENA"ERROR: "SVCRVENA"Nemate firma!");
                       if(!IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[fIzlazX], FirmaInfo[fIzlazY], FirmaInfo[fIzlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste vo vasata firma!");
                  if(FirmaInfo[fZatvoreno] == 1) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Vekje e zaklucena!");
                  FirmaInfo[fZatvoreno] = 1;
                  SCM(playerid,-1, ""GLAVNA"(EC): "BELA"Firma zaklucena!");
                  SacuvajFirmu(i);
               }
            }
             case 3:
            {
                if(FirmaInfo[fVrsta] == VRSTA_SBIZZ)
                {
                       if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[fUlazX], FirmaInfo[fUlazY], FirmaInfo[fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste pred vasata firma!");
                  new string[128];
                  format(string,sizeof(string), ""BELA"Vnesete kolku pari sakate da podignete\n"ZELENA"Vo kasata vo momentot ima %d$!", FirmaInfo[fKasa]);
                  SPD(playerid, DFIRMA_PODIZANJE, DIALOG_STYLE_INPUT, ""ZELENA"Vadenje pari od Firma", string, "Podigni", "Izlez");
               }
               else
               {
                   if(!IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[fIzlazX], FirmaInfo[fIzlazY], FirmaInfo[fIzlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste vo vasata firma!");
                  new string[128];
                  format(string,sizeof(string), ""BELA"Vnesete kolku pari sakate da podignete\n"ZELENA"Vo kasata vo momentot ima %d$!", FirmaInfo[fKasa]);
                  SPD(playerid, DFIRMA_PODIZANJE, DIALOG_STYLE_INPUT, ""ZELENA"Vadenje pari od Firma", string, "Podigni", "Izlez");
               }
            }
            case 4:
            {
                if(FirmaInfo[fVrsta] == VRSTA_SBIZZ)
                {
                    if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[fUlazX], FirmaInfo[fUlazY], FirmaInfo[fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste pred vasata firma!");
                  new string[128];
                  format(string,sizeof(string), ""BELA"Vnesete kolku pari sakate da ostavite\n"ZELENA"Vo kasata vo momentot ima %d$!", FirmaInfo[fKasa]);
                  SPD(playerid, DFIRMA_OSTAVLJANJE, DIALOG_STYLE_INPUT, ""ZELENA"Ostavanje pari vo firma", string, "Ostavi", "Izlez");
                }
                else
                {
                   if(!IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[fIzlazX], FirmaInfo[fIzlazY], FirmaInfo[fIzlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste vo vasata firma!");
                  new string[128];
                  format(string,sizeof(string), ""BELA"Vnesete kolku pari sakate da ostavite\n"ZELENA"Vo kasata vo momentot ima %d$!", FirmaInfo[fKasa]);
                  SPD(playerid, DFIRMA_OSTAVLJANJE, DIALOG_STYLE_INPUT, ""ZELENA"Ostavanje pari vo firma", string, "Ostavi", "Izlez");
               }
            }
            case 5:
            {
                if(FirmaInfo[fVrsta] == VRSTA_SBIZZ) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Na vasata firma ne i se potrebni proizvodi!");
                if(FirmaInfo[fProizvodi] >= 200) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Vo vasata firma ima nad 200 proizvodi ne i se potrebni uste!");
                SCM(playerid,-1,""GLAVNA"(EC): "BELA"Naracavte proizvodi, gi obavestime site online dostavuvaci!");
               foreach(Player, iplayer)
               {
                   if(IsPlayerConnected(iplayer))
                   {
                     if(PI[iplayer][pPosao] == POSAO_DOSTAVLJAC)
                     {
                        new textjbni4[512];format(textjbni4, sizeof(textjbni4),""HZELENA"Potrebni Proizvodi | "BELA"Firma: %s | Lokacija: %s | Vlasnik/Naracatel: %s!",FirmaInfo[fNaziv],UlicaFirme(i), GetName(playerid));
                        SCM(iplayer, -1, textjbni4);
                     }
                  }
               }
            }
            case 6:
            {
                if(FirmaInfo[fVrsta] == VRSTA_SBIZZ)
                {
                    if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[fUlazX], FirmaInfo[fUlazY], FirmaInfo[fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste pred vasata firma!");
                    SPD(playerid, DFIRMA_NAZIV, DIALOG_STYLE_INPUT, ""CRVENA"Firma Ime", ""SIVA"Napisete novo ime\n"CRVENA"Zabraneto e stavanje OOC ime na firmata!", "Promeni", "Izlez");
                }
                else
                {
                  if(!IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[fIzlazX], FirmaInfo[fIzlazY], FirmaInfo[fIzlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste vo vasata firma!");
                  SPD(playerid, DFIRMA_NAZIV, DIALOG_STYLE_INPUT, ""CRVENA"Firma Ime", ""SIVA"Napisete novo ime\n"CRVENA"Zabraneto e stavanje OOC ime na firmata!", "Promeni", "Izlez");
               }
            }
            case 7:
            {
               if(PI[playerid][pPosedovanjeFirme] == -1) return SCM(playerid,-1, ""JCRVENA"ERROR: "SVCRVENA"Nemate firma!");
                    if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[fUlazX], FirmaInfo[fUlazY], FirmaInfo[fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste pred vasata firma!");
               new cena1 = (FirmaInfo[fCena]/4)*2;
               new string[256];
               format(string,sizeof(string), ""BELA"Prodazba na firma na drzava\n\n"ZPLAVA"Dali sigurno sakate da ja prodadete firmata na drzavata za %d$!\n\n"BELA"Ako ste sigurni kliknete na 'Prodaj' ako ne kliknete na 'Izlez'", cena1);
               SPD(playerid, DFIRMA_PRODAJA, DIALOG_STYLE_MSGBOX, ""BELA"Prodazba na firma na drzava", string, "Prodaj", "Izlez");
            }
            case 8:
            {
                if(FirmaInfo[fVrsta] == VRSTA_SBIZZ)
                {
                  if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[fUlazX], FirmaInfo[fUlazY], FirmaInfo[fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste pred vasata firma!");
                  SPD(playerid, DFIRMA_IZNUDA, DIALOG_STYLE_LIST, ""BELA"Postavuvanje reket", ""ZPLAVA"(1). "BELA"La Cosa Nostra\n"ZPLAVA"(2). "BELA"Yakuza", "Postavi", "Izlez");
                }
                else
                {
                   if(!IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[fIzlazX], FirmaInfo[fIzlazY], FirmaInfo[fIzlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste vo vasata firma!");
                  SPD(playerid, DFIRMA_IZNUDA, DIALOG_STYLE_LIST, ""BELA"Postavuvanje reket", ""ZPLAVA"(1). "BELA"La Cosa Nostra\n"ZPLAVA"(2). "BELA"Yakuza", "Postavi", "Izlez");
               }
            }
            case 9:
            {
                if(FirmaInfo[fVrsta] == VRSTA_SBIZZ)
                {
                       if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[fUlazX], FirmaInfo[fUlazY], FirmaInfo[fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste pred vasata firma!");
                       strmid(FirmaInfo[fIznuda], "Nikoj", 0, strlen("Nikoj"), 255);
                  SCM(playerid,-1, ""GLAVNA"(EC): "BELA"Go trgnavte reketot na vasata firma!");
                   FirmaLabelIPickup(i); SacuvajFirmu(i);
               }
               else
               {
                   if(!IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[fIzlazX], FirmaInfo[fIzlazY], FirmaInfo[fIzlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste vo vasata firma!");
                  strmid(FirmaInfo[fIznuda], "Nikoj", 0, strlen("Nikoj"), 255);
                  SCM(playerid,-1, ""GLAVNA"(EC): "BELA"Go trgnavte reketot na vasata firma!");
                   FirmaLabelIPickup(i); SacuvajFirmu(i);
            }
                case 10:
             {
                    if(PI[playerid][pPosedovanjeFirme] == -1) return SCM(playerid,-1, ""JCRVENA"ERROR: "SVCRVENA"Nemate firmu!");
                       if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[i ][fUlazX], FirmaInfo[i ][fUlazY], FirmaInfo[i ][fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Niste ispred vasu firmu!");
                    SPD(playerid, DIALOG_PRFIRMA, DIALOG_STYLE_INPUT, "Prodazba na firmu", ""CRVENA"Vnesete ID igraca koji ocete da mu prodati firmu...", "Potvrdi", "Izlaz");
              }
            }
         }
      }
   }[/pawn]

Probaj ovako


if(dialogid == DIALOG_FIRMA && response)
{
if(!response) return 1;
if(response)
{
if(PI[playerid][pPosedovanjeFirme] == -1) return SCM(playerid,-1, ""JCRVENA"ERROR: "SVCRVENA"Nemate firma!");
new i = PI[playerid][pPosedovanjeFirme];
switch(listitem)
{
case 0:
{
    if(FirmaInfo[i][fVrsta] == VRSTA_SBIZZ)
    {
    if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste pred vasata firma!");
new string1[275], string2[275], string[550],z[3]; if(FirmaInfo[i][fZatvoreno] == 1) z = "Da"; else z = "Ne";
format(string1,sizeof(string1),""BELA"_______________________________________\n\n"ZPLAVA"Vlasnik na Firma: "CRVENA"%s\n"ZPLAVA"Ime na Firma: "CRVENA"%s\n"ZPLAVA"Reket: "CRVENA"%s\n"ZPLAVA"Level: "BELA"%d\n"ZPLAVA"Cena: "BELA"%d\n",FirmaInfo[i][fVlasnik],FirmaInfo[i][fNaziv],FirmaInfo[i][fIznuda],FirmaInfo[i][fLevel],FirmaInfo[i][fCena]);
format(string2,sizeof(string2),""ZPLAVA"ID: "BELA"%d\n"ZPLAVA"Zatvoreno: "BELA"%s\n"ZPLAVA"Kasa: "BELA"%d$\n"ZPLAVA"Proizvodi: "BELA"%d/%d\n_______________________________________",i,z,FirmaInfo[i][fKasa],FirmaInfo[i][fProizvodi],FirmaInfo[i][fMaxProizvodi]);
    format(string, sizeof(string), "%s%s", string1, string2);
    SPD(playerid, DIALOG_FINFO, DIALOG_STYLE_MSGBOX, ""BELA"Firma Informacii", string, "Ok", "Izlez");
}
else
{
if(!IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[i][fIzlazX], FirmaInfo[i][fIzlazY], FirmaInfo[i][fIzlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste vo vasata firma!");
new string1[275], string2[275], string[550],z[3]; if(FirmaInfo[i][fZatvoreno] == 1) z = "Da"; else z = "Ne";
format(string1,sizeof(string1),""BELA"_______________________________________\n\n"ZPLAVA"Vlasnik na Firma: "CRVENA"%s\n"ZPLAVA"Ime na Firma: "CRVENA"%s\n"ZPLAVA"Reket: "CRVENA"%s\n"ZPLAVA"Level: "BELA"%d\n"ZPLAVA"Cena: "BELA"%d\n",FirmaInfo[i][fVlasnik],FirmaInfo[i][fNaziv],FirmaInfo[i][fIznuda],FirmaInfo[i][fLevel],FirmaInfo[i][fCena]);
format(string2,sizeof(string2),""ZPLAVA"ID: "BELA"%d\n"ZPLAVA"Zatvoreno: "BELA"%s\n"ZPLAVA"Kasa: "BELA"%d$\n"ZPLAVA"Proizvodi: "BELA"%d/%d\n_______________________________________",i,z,FirmaInfo[i][fKasa],FirmaInfo[i][fProizvodi],FirmaInfo[i][fMaxProizvodi]);
    format(string, sizeof(string), "%s%s", string1, string2);
    SPD(playerid, DIALOG_FINFO, DIALOG_STYLE_MSGBOX, ""BELA"Firma Informacii", string, "Ok", "Izlez");
}
}
case 1:
{
    if(FirmaInfo[i][fVrsta] == VRSTA_SBIZZ)
    {
if(PI[playerid][pPosedovanjeFirme] == -1) return SCM(playerid,-1, ""JCRVENA"ERROR: "SVCRVENA"Nemate firma!");
                    if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste pred vasata firma!");
if(FirmaInfo[i][fZatvoreno] == 0) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Vekje e otklucena!");
FirmaInfo[i][fZatvoreno] = 0;
SCM(playerid,-1, ""GLAVNA"(EC): "BELA"Firma otklucena!");
SacuvajFirmu(i);
}
else
{
if(PI[playerid][pPosedovanjeFirme] == -1) return SCM(playerid,-1, ""JCRVENA"ERROR: "SVCRVENA"Nemate firma!");
                    if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste pred vasata firma!");
if(FirmaInfo[i][fZatvoreno] == 0) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Vekje e otklucena!");
FirmaInfo[i][fZatvoreno] = 0;
SCM(playerid,-1, ""GLAVNA"(EC): "BELA"Firma otklucena!");
SacuvajFirmu(i);
}
}
case 2:
{
    if(FirmaInfo[i][fVrsta] == VRSTA_SBIZZ)
    {
if(PI[playerid][pPosedovanjeFirme] == -1) return SCM(playerid,-1, ""JCRVENA"ERROR: "SVCRVENA"Nemate firma!");
                    if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste pred vasata firma!");
if(FirmaInfo[i][fZatvoreno] == 1) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Vekje e zaklucena!");
FirmaInfo[i][fZatvoreno] = 1;
SCM(playerid,-1, ""GLAVNA"(EC): "BELA"Firma zaklucena!");
SacuvajFirmu(i);
}
else
{
if(PI[playerid][pPosedovanjeFirme] == -1) return SCM(playerid,-1, ""JCRVENA"ERROR: "SVCRVENA"Nemate firma!");
                    if(!IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[i][fIzlazX], FirmaInfo[i][fIzlazY], FirmaInfo[i][fIzlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste vo vasata firma!");
if(FirmaInfo[i][fZatvoreno] == 1) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Vekje e zaklucena!");
FirmaInfo[i][fZatvoreno] = 1;
SCM(playerid,-1, ""GLAVNA"(EC): "BELA"Firma zaklucena!");
SacuvajFirmu(i);
}
}
    case 3:
{
    if(FirmaInfo[i][fVrsta] == VRSTA_SBIZZ)
    {
                    if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste pred vasata firma!");
new string[128];
format(string,sizeof(string), ""BELA"Vnesete kolku pari sakate da podignete\n"ZELENA"Vo kasata vo momentot ima %d$!", FirmaInfo[i][fKasa]);
SPD(playerid, DFIRMA_PODIZANJE, DIALOG_STYLE_INPUT, ""ZELENA"Vadenje pari od Firma", string, "Podigni", "Izlez");
}
else
{
    if(!IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[i][fIzlazX], FirmaInfo[i][fIzlazY], FirmaInfo[i][fIzlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste vo vasata firma!");
new string[128];
format(string,sizeof(string), ""BELA"Vnesete kolku pari sakate da podignete\n"ZELENA"Vo kasata vo momentot ima %d$!", FirmaInfo[i][fKasa]);
SPD(playerid, DFIRMA_PODIZANJE, DIALOG_STYLE_INPUT, ""ZELENA"Vadenje pari od Firma", string, "Podigni", "Izlez");
}
}
case 4:
{
    if(FirmaInfo[i][fVrsta] == VRSTA_SBIZZ)
    {
        if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste pred vasata firma!");
new string[128];
format(string,sizeof(string), ""BELA"Vnesete kolku pari sakate da ostavite\n"ZELENA"Vo kasata vo momentot ima %d$!", FirmaInfo[i][fKasa]);
SPD(playerid, DFIRMA_OSTAVLJANJE, DIALOG_STYLE_INPUT, ""ZELENA"Ostavanje pari vo firma", string, "Ostavi", "Izlez");
    }
    else
    {
    if(!IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[i][fIzlazX], FirmaInfo[i][fIzlazY], FirmaInfo[i][fIzlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste vo vasata firma!");
new string[128];
format(string,sizeof(string), ""BELA"Vnesete kolku pari sakate da ostavite\n"ZELENA"Vo kasata vo momentot ima %d$!", FirmaInfo[i][fKasa]);
SPD(playerid, DFIRMA_OSTAVLJANJE, DIALOG_STYLE_INPUT, ""ZELENA"Ostavanje pari vo firma", string, "Ostavi", "Izlez");
}
}
case 5:
{
    if(FirmaInfo[i][fVrsta] == VRSTA_SBIZZ) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Na vasata firma ne i se potrebni proizvodi!");
    if(FirmaInfo[i][fProizvodi] >= 200) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Vo vasata firma ima nad 200 proizvodi ne i se potrebni uste!");
    SCM(playerid,-1,""GLAVNA"(EC): "BELA"Naracavte proizvodi, gi obavestime site online dostavuvaci!");
foreach(Player, iplayer)
{
    if(IsPlayerConnected(iplayer))
    {
if(PI[iplayer][pPosao] == POSAO_DOSTAVLJAC)
{
new textjbni4[512];format(textjbni4, sizeof(textjbni4),""HZELENA"Potrebni Proizvodi | "BELA"Firma: %s | Lokacija: %s | Vlasnik/Naracatel: %s!",FirmaInfo[i][fNaziv],UlicaFirme(i), GetName(playerid));
SCM(iplayer, -1, textjbni4);
}
}
}
}
case 6:
{
    if(FirmaInfo[i][fVrsta] == VRSTA_SBIZZ)
    {
        if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste pred vasata firma!");
        SPD(playerid, DFIRMA_NAZIV, DIALOG_STYLE_INPUT, ""CRVENA"Firma Ime", ""SIVA"Napisete novo ime\n"CRVENA"Zabraneto e stavanje OOC ime na firmata!", "Promeni", "Izlez");
    }
    else
    {
if(!IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[i][fIzlazX], FirmaInfo[i][fIzlazY], FirmaInfo[i][fIzlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste vo vasata firma!");
SPD(playerid, DFIRMA_NAZIV, DIALOG_STYLE_INPUT, ""CRVENA"Firma Ime", ""SIVA"Napisete novo ime\n"CRVENA"Zabraneto e stavanje OOC ime na firmata!", "Promeni", "Izlez");
}
}
case 7:
{
if(PI[playerid][pPosedovanjeFirme] == -1) return SCM(playerid,-1, ""JCRVENA"ERROR: "SVCRVENA"Nemate firma!");
                    if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste pred vasata firma!");
new cena1 = (FirmaInfo[i][fCena]/4)*2;
new string[256];
format(string,sizeof(string), ""BELA"Prodazba na firma na drzava\n\n"ZPLAVA"Dali sigurno sakate da ja prodadete firmata na drzavata za %d$!\n\n"BELA"Ako ste sigurni kliknete na `Prodaj` ako ne kliknete na `Izlez`", cena1);
SPD(playerid, DFIRMA_PRODAJA, DIALOG_STYLE_MSGBOX, ""BELA"Prodazba na firma na drzava", string, "Prodaj", "Izlez");
}
case 8:
{
    if(FirmaInfo[i][fVrsta] == VRSTA_SBIZZ)
    {
if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste pred vasata firma!");
SPD(playerid, DFIRMA_IZNUDA, DIALOG_STYLE_LIST, ""BELA"Postavuvanje reket", ""ZPLAVA"(1). "BELA"La Cosa Nostra\n"ZPLAVA"(2). "BELA"Yakuza", "Postavi", "Izlez");
    }
    else
    {
    if(!IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[i][fIzlazX], FirmaInfo[i][fIzlazY], FirmaInfo[i][fIzlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste vo vasata firma!");
SPD(playerid, DFIRMA_IZNUDA, DIALOG_STYLE_LIST, ""BELA"Postavuvanje reket", ""ZPLAVA"(1). "BELA"La Cosa Nostra\n"ZPLAVA"(2). "BELA"Yakuza", "Postavi", "Izlez");
}
}
case 9:
{
    if(FirmaInfo[i][fVrsta] == VRSTA_SBIZZ)
    {
                    if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste pred vasata firma!");
                    strmid(FirmaInfo[i][fIznuda], "Nikoj", 0, strlen("Nikoj"), 255);
SCM(playerid,-1, ""GLAVNA"(EC): "BELA"Go trgnavte reketot na vasata firma!");
    FirmaLabelIPickup(i); SacuvajFirmu(i);
}
else
{
    if(!IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[i][fIzlazX], FirmaInfo[i][fIzlazY], FirmaInfo[i][fIzlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Ne ste vo vasata firma!");
strmid(FirmaInfo[i][fIznuda], "Nikoj", 0, strlen("Nikoj"), 255);
SCM(playerid,-1, ""GLAVNA"(EC): "BELA"Go trgnavte reketot na vasata firma!");
    FirmaLabelIPickup(i); SacuvajFirmu(i);
}
                   }
                case 10:
    {
           if(PI[playerid][pPosedovanjeFirme] == -1) return SCM(playerid,-1, ""JCRVENA"ERROR: "SVCRVENA"Nemate firmu!");
                       if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[i ][fUlazX], FirmaInfo[i ][fUlazY], FirmaInfo[i ][fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Niste ispred vasu firmu!");
                    SPD(playerid, DIALOG_PRFIRMA, DIALOG_STYLE_INPUT, "Prodazba na firmu", ""CRVENA"Vnesete ID igraca koji ocete da mu prodati firmu...", "Potvrdi", "Izlaz");
        }
}
}
}
}


Citat: Snike02 poslato Decembar 05, 2017, 17:37:48 POSLE PODNE
Sada pa ide Pawn Compiler Library has stopped working.

Zato sto ti je taj drugar, sto je dao code, samo izkoprio iz svog nekog lijevog gamemoda, vidis li te brackete..


jednostavno dodaj switch(listitem) i bracket { (naravno i onaj sto zatvara).. i case ne radis sa ; kao sto je rekao neko gore nego sa :

I na kraj doznao sam da sam zaboravio bracket ali sada ovo vadi

Citat(53803) : error 017: undefined symbol "i"

[pawn]
if(dialogid == DIALOG_PRFIRMA)
   {
       if(!response) return 1;
       if(PI[playerid][pPosedovanjeFirme] == -1) return SCM(playerid,-1, ""JCRVENA"ERROR: "SVCRVENA"Nemate firma!");
       if(response)
       {
          new kid, string[128], Float:Poz[3];
          if(sscanf(inputtext, "u", kid)) return SPD(playerid, DIALOG_PRFIRMA, DIALOG_STYLE_INPUT, "Prodazba na firma", ""BELA"POGRESEN ID!\n"CRVENA"Vnesete ID na igracot na koj sakate da ja prodadete...", "Potvrdi", "Izlez");
         if(!IsPlayerConnected(kid)) return SPD(playerid, DIALOG_PRFIRMA, DIALOG_STYLE_INPUT, "Prodazba na firma", ""BELA"POGRESEN ID!\n"CRVENA"Vnesete ID na igracot na koj sakate da ja prodadete...", "Potvrdi", "Izlez");
(53803)         if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[fUlazX], FirmaInfo[fUlazY], FirmaInfo[fUlazZ])) return SCM(playerid,-1,""JCRVENA"ERROR: "SVCRVENA"Niste ispred vasu firmu!");
            GetPlayerPos(kid, Poz[0], Poz[1], Poz[2]);
         if(!IsPlayerInRangeOfPoint(playerid, 5.0, Poz[0], Poz[1], Poz[2])) return SCM(playerid, -1, ""SIVA"Igracot ne e vo vasa blizina!");
            if(kid == playerid) return SCM(playerid,-1, ""JCRVENA"ERROR: "SVCRVENA"Ne mozete sam na sebe da go prodadete!");
         KomeProdaje[playerid] = kid; PonudioIgrac[kid] = playerid;
           format(string,sizeof(string), ""CRVENA"Sega vnesete ja cenata za koja sakate da ja prodadete firmata...");
           SPD(playerid, DIALOG_PRFIRMACENA, DIALOG_STYLE_INPUT, "Prodazba na firma", string, "Potvrdi", "Izlez");
      }
   }
[/pawn]
Poslednja Izmena: Decembar 05, 2017, 18:05:57 POSLE PODNE od Snike02

Dodaj ovo kod ostalih promenljivih.

new i = PlayerInfo[playerid][pKljucFirme]; (ili koja ti je vec promenljiva za firme)

Citat: Tosic ãƒ,, poslato Decembar 05, 2017, 18:08:55 POSLE PODNE
Dodaj ovo kod ostalih promenljivih.

new i = PlayerInfo[playerid][pKljucFirme]; (ili koja ti je vec promenljiva za firme)
Hvala ti Sredeno Sve LOCK.