Invite Dialog

Započeo Snike02, Decembar 19, 2017, 09:00:13 PRE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim: Nebitno
Detaljan opis problema: Pa vako koristim editiranog skripta od UP-a,na UP-a invite nije u dialoga i ja sam ga napravio u dialoga,sve je bilo super,uzeo sam drugu skriptu stavi sum potpuni isti sistem koji sam koristeo na ta skripta i vadi mi oko 30 erora,sve primer undefined symbol "VoziloJeAvion",i vakvi jedno 10,ali kad izbrisem org inv u dialoga ne vadi taj erora,a i dve skripte su izvorni od UP-a i dve skripte imaju isti sisteme.
Ako zna neko da mi kaze shta je problem,treba mi puno inv u dialoga a nemogu da ga napravim radi ovi erora.
Dio skripte:

EVO KOMANDA
[pawn]
YCMD:invite(playerid, params[],help)
{
    #pragma unused help
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,""CRVENA"ERROR:"BELA" Moras da se logirash za da ja koristis ovaa komanda!");
   new para1, ftext;
   if (PlayerInfo[playerid][pLider] < 1) return SendClientMessage(playerid, -1, ""CRVENA"{0D97E6}(FLRP) "BELA"Samo Lideri!");
   if(sscanf(params, "u", para1)) return SendClientMessage(playerid, -1, ""BELA"{D4D4D4}COMMAND:{FFFFFF} "BELA"/invite [ID]");
   if(!IsPlayerConnected(para1)) return SCM(playerid, -1, ""CRVENA"ERROR:{FFFFFF}Toj igrac e offline!");
    if(PlayerInfo[para1][pLevel] < 2) return SCM(playerid,-1,""CRVENA"{0D97E6}(FLRP) "BELA"Igracot mora da e minimum level 2!");
   if(PlayerInfo[para1][pPozvan] > 0) return SendClientMessage(playerid, -1, ""CRVENA"{0D97E6}(FLRP) "BELA" Nekoj vekje go pokani toj igrac!");
   if(PlayerInfo[para1][pOrgUgovor] != 0) return SCM(playerid,-1,""CRVENA"{0D97E6}(FLRP) "BELA"Igracot ima kazna za invite pocekajte da pomine!");
   if(para1 == playerid) return SCM(playerid,-1,""CRVENA"ERROR:{FFFFFF}Ne mozete sam da se pokanite!");
   if(PlayerInfo[para1][pLider] > 0) return SendClientMessage(playerid, -1, ""CRVENA"{0D97E6}(FLRP) "BELA"Toj igrac e lider na nekoja organizacija!");
   //////////POLICIJA///////////
   if (PlayerInfo[para1][pClan] == 0)
   {
      if(PlayerInfo[playerid][pLider] == 1)
      {
         PlayerInfo[para1][pPozvan] = 1;
      }
      /////////////News///////////////////
      else if(PlayerInfo[playerid][pLider] == 2)
      {
         PlayerInfo[para1][pPozvan] = 2;
      }
      ///////////////TRIADS///////////////////
      else if(PlayerInfo[playerid][pLider] == 3)
      {
         PlayerInfo[para1][pPozvan] = 3;
      }
      /////////////LOCOS//////////////////////
      else if(PlayerInfo[playerid][pLider] == 4)
      {
         PlayerInfo[para1][pPozvan] = 4;
      }
      /////////////BALLAS////////////////////////
      else if(PlayerInfo[playerid][pLider] == 6)
      {
         PlayerInfo[para1][pPozvan] = 6;
      }
      //////////////Los Surenos//////////////
      else if(PlayerInfo[playerid][pLider] == 5)
      {
         PlayerInfo[para1][pPozvan] = 5;
      }
      ////////////////////////////////////////
      else
      {
         return 1;
      }
      new str[512];
      format(str,512,"Jas %s te pokanuvam da rabotis za mene i da bides moj clen.\nDokolku Prifakjas pristisni 'Prifakjam'\nDokolku Odbivas pritisni 'Odbivam'\n",ime,PlayerInfo[playerid]);
      ShowPlayerDialog(para1, DIALOG_INVITE,DIALOG_STYLE_MSGBOX,"Pokana za Clenstvo",str,"Prifakjam","Odbivam");
      SCMF(playerid,-1,""BELA"{0D97E6}(FLRP){FFFFFF} "BELA"Go pokanivte %s da se pridruzi vo vasata organizacija.",GetName(para1));
   }
   else
   {
      SCM(playerid, -1, ""CRVENA"ERROR:{FFFFFF}Toj igrac e vekje clen na nekoja organizacija!");
      return 1;
   }
   return 1;
}[/pawn]

EVO DIALOG
[pawn]if(dialogid == DIALOG_INVITE)
{
   if(response)
   {
      if(PlayerInfo[playerid][pPozvan] == 1)
              {
             //ftext = "SD";
             PlayerInfo[playerid][pClan] = 1; PlayerInfo[playerid][pRank] = 1; PlayerInfo[playerid][pSkin] = 284;
             PlayerInfo[playerid][pPozvan] = 0; SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
             new string[128]; SCM(playerid,-1,""TPLAVA"(ORGANIZACIJA) "BELA"Uspesno se pridruzivte na Fort Carson Sheriff Departament!");
             format(string, sizeof(string), ""ZELENA"SUCCESS: "BELA"Igrac %s go prifati povikot i stana clen na FCSD!", GetName(playerid));
             ChatPD(-1, string);
              }
                else if(PlayerInfo[playerid][pPozvan] == 2)
              {
             //ftext = "News";
              PlayerInfo[playerid][pClan] = 2; PlayerInfo[playerid][pRank] = 1; PlayerInfo[playerid][pSkin] = News_RANK1;
             PlayerInfo[playerid][pPozvan] = 0; SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
             new string[128]; SCM(playerid,-1,""TPLAVA"(ORGANIZACIJA) "BELA"Uspesno se pridruzivte na News!");
             format(string, sizeof(string), ""ZELENA"SUCCESS: "BELA"Igrac %s go prifati povikot i stana clen na News!", GetName(playerid));
             ChatNews(-1, string);
              }
              else if(PlayerInfo[playerid][pPozvan] == 3)
              {
             //ftext = "Mexican Mafia";
             PlayerInfo[playerid][pClan] = 3; PlayerInfo[playerid][pRank] = 1; PlayerInfo[playerid][pSkin] = 117;
             PlayerInfo[playerid][pPozvan] = 0; SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
             new string[128]; SCM(playerid,-1,""TPLAVA"(ORGANIZACIJA) "BELA"Uspesno se pridruzivte na Mexican Mafia!");
             format(string, sizeof(string), ""ZELENA"SUCCESS: "BELA"Igrac %s go prifati povikot i stana clen na Mexican Mafia!", GetName(playerid));
             ChatRDT(-1, string);
              }
              else if(PlayerInfo[playerid][pPozvan] == 4)
              {
             //ftext = "Mara Salvatrucha 13";
             PlayerInfo[playerid][pClan] = 4; PlayerInfo[playerid][pRank] = 1; PlayerInfo[playerid][pSkin] = 105;
             PlayerInfo[playerid][pPozvan] = 0; SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
             new string[128]; SCM(playerid,-1,""TPLAVA"(ORGANIZACIJA) "BELA"Uspesno se pridruzivte na Mara Salvatrucha 13!");
             format(string, sizeof(string), ""ZELENA"SUCCESS: "BELA"Igrac %s go prifati povikot i stana clen na Mara Salvatrucha 13!", GetName(playerid));
             ChatFCL(-1, string);
              }
              else if(PlayerInfo[playerid][pPozvan] == 6)
              {
             //ftext = "Ballas";
             PlayerInfo[playerid][pClan] = 6; PlayerInfo[playerid][pRank] = 1; PlayerInfo[playerid][pSkin] = 102;
             PlayerInfo[playerid][pPozvan] = 0; SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
             new string[128]; SCM(playerid,-1,""TPLAVA"(ORGANIZACIJA) "BELA"Uspesno se pridruzivte na Ballas!");
             format(string, sizeof(string), ""ZELENA"SUCCESS: "BELA"Igrac %s go prifati povikot i stana clen na Ballas!", GetName(playerid));
             ChatBALLAS(-1, string);
              }
              else if(PlayerInfo[playerid][pPozvan] == 5)
              {
             //ftext = "Los Surenos";
             PlayerInfo[playerid][pClan] = 5; PlayerInfo[playerid][pRank] = 1; PlayerInfo[playerid][pSkin] = 175;
             PlayerInfo[playerid][pPozvan] = 0; SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
             new string[128]; SCM(playerid,-1,""TPLAVA"(ORGANIZACIJA) "BELA"Uspesno se pridruzvte na Los Surenos!");
             format(string, sizeof(string), ""ZELENA"SUCCESS: "BELA"Igrac %s go prifati povikot i stana clen na Los Surenos!", GetName(playerid));
             ChatDrc(-1, string);
              }
                format(string, sizeof(string), "%s odgovori tocno na site prasanja i go polozi invite testot.", sendername);
                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        }
        else
        {
        if(PlayerInfo[playerid][pPozvan] == 1)
      {
          PlayerInfo[playerid][pPozvan] = 0;
          PlayerInfo[playerid][pClan] = 0;
          PlayerInfo[playerid][pRank] = 0;
          new string[128];
          format(string, sizeof(string), "{0D97E6}(FLRP) "BELA"Igrac %s odbi da stane clen na SD!", GetName(playerid));
         ChatPD(-1, string);
         SCM(playerid,-1,""BELA"Odbivte da stanete clen na taa organizacija!");
      }
      else if(PlayerInfo[playerid][pPozvan] == 2)
      {
          PlayerInfo[playerid][pPozvan] = 0;
          PlayerInfo[playerid][pClan] = 0;
          PlayerInfo[playerid][pRank] = 0;
          new string[128];
          format(string, sizeof(string), ""ORANGE"[LSN] "BELA"Igrac %s odbi da stane clen na News!", GetName(playerid));
         ChatNews(-1, string);
         SCM(playerid,-1,""BELA"Odbivte da stanete clen na taa organizacija!");
      }
      ///////////////////////////////////////////
      else if(PlayerInfo[playerid][pPozvan] == 3)
      {
          PlayerInfo[playerid][pPozvan] = 0;
          PlayerInfo[playerid][pClan] = 0;
          PlayerInfo[playerid][pRank] = 0;
          new string[128];
          format(string, sizeof(string), ""CRVENA"REJECTED: "BELA"Igrac %s odbi da stane clen na Mexican Mafia!", GetName(playerid));
         ChatRDT(-1, string);
         SCM(playerid,-1,""TPLAVA"(FLRP) "BELA"Odbivte da stanete clen na taa organizacija!");
      }
      ///////////////////////////////////////////
      else if(PlayerInfo[playerid][pPozvan] == 4)
      {
          PlayerInfo[playerid][pPozvan] = 0;
          PlayerInfo[playerid][pClan] = 0;
          PlayerInfo[playerid][pRank] = 0;
          new string[128];
          format(string, sizeof(string), ""BELA"[FCL] "BELA"Igrac %s odbi da stane clen na FCL!", GetName(playerid));
         ChatFCL(-1, string);
         SCM(playerid,-1,""BELA"Odbivte da stanete clen na taa organizacija!");
      }
      /////////////////////////////////////////////
      else if(PlayerInfo[playerid][pPozvan] == 6)
      {
          PlayerInfo[playerid][pPozvan] = 0;
          PlayerInfo[playerid][pClan] = 0;
          PlayerInfo[playerid][pRank] = 0;
          new string[128];
          format(string, sizeof(string), ""BELA"[BALLAS] "BELA"Igrac %s odbi da stane clen na Ballas!", GetName(playerid));
         ChatBALLAS(-1, string);
         SCM(playerid,-1,""BELA"Odbivte da stanete clen na taa organizacija!");
      }
      ////////////////////////////////////////////
      else if(PlayerInfo[playerid][pPozvan] == 5)
      {
          PlayerInfo[playerid][pPozvan] = 0;
          PlayerInfo[playerid][pClan] = 0;
          PlayerInfo[playerid][pRank] = 0;
          new string[128];
          format(string, sizeof(string), ""DRCC"[DRC] "BELA"Igrac %s odbi da stane clen na Los Surenos!", GetName(playerid));
         ChatDrc(-1, string);
         SCM(playerid,-1,""BELA"Odbivte da stanete clen na taa organizacija!");
      }
   }[/pawn]

EVO ERRORE
(3716) : error 017: undefined symbol "VoziloJeAvion"
(3717) : error 017: undefined symbol "VoziloJeMotor"
(3718) : error 017: undefined symbol "VoziloJeBicikla"
(3720) : error 017: undefined symbol "VoziloJeBicikla"
(3726) : error 017: undefined symbol "DostavljacVozila"
(3780) : error 017: undefined symbol "UlicaKuce"
(3788) : error 017: undefined symbol "UlicaKuce"
(3792) : error 017: undefined symbol "UlicaKuce"
(3907) : error 017: undefined symbol "KreirajAtm"
(4143) : error 017: undefined symbol "SavePlayer"
(4145) : error 017: undefined symbol "SacuvajFirmu"
(4146) : error 017: undefined symbol "SacuvajKucu"
(4147) : error 017: undefined symbol "SacuvajStan"
(4148) : error 017: undefined symbol "SacuvajVikendicu"
(4149) : error 017: undefined symbol "SacuvajATM"
(4284) : error 017: undefined symbol "SacuvajVozilo"
(4303) : error 017: undefined symbol "SacuvajVozilo"
(4550) : error 017: undefined symbol "SavePlayer"
(4640) : error 017: undefined symbol "GetName"
(4643) : error 017: undefined symbol "ProveraRPImena"
(4658) : error 017: undefined symbol "AttachObjectRemove"
(4658) : error 017: undefined symbol "ObrisiObjekte"
(4659) : error 017: undefined symbol "BelaBojaIgraca"
(4659) : error 017: undefined symbol "KreirajTextDrawe"
(4659) : error 017: undefined symbol "g_SetPlayerHealth"
(4659) : fatal error 107: too many error messages on one line

Neke slike/video za lakse dobivanje pomoci(neobavezno): //

Moras da definises ovo jel si uzeo komandu od kojeg srv
#ROBY
#ONLINE !
----- NIKAD PORAZ SAMO LEKCIJA! -----

Citat: Roby Maper poslato Decembar 19, 2017, 09:01:19 PRE PODNE
Moras da definises ovo jel si uzeo komandu od kojeg srv
Abe a da citas malo?
Kad stavim dialoga ovo erore vadi,kad nema dialog nema erora i nisam uzeao komandu ja sam ga editovao..

Nisi dobro zatvorio { }

Facebook - Klik