Ne mogu nikako da resim ovaj Error!

Započeo ʙᴜsᴛᴇʀ ᴄᴏɴɴᴇʟʟʏ, Decembar 17, 2017, 18:55:26 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: San Miami ( Ne znam iskreno ni cija je, ni sta je, ali dosta sam je editovao, dao mi je drug ).
Detaljan opis problema: Tu komandu imam od pocetka servera i nisam imao error,  a kad sam dodao novu komandu, Error se javio na toj komandi gde pre nisam imao Error, bez ikakvog razloga, nista nisam dirao, zna li neko kako da resim?... Inace error je na 29807 .  :'(

Dio skripte: [pawn]YCMD:postaviadmina(playerid, params[],help)
{
    #pragma unused help
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"SM: "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
   if(PlayerInfo[playerid][pAdmin] > 4) return SCM(playerid,-1,""SRWBOJA"SM: "SIVA"Sad samo Buster moze da postavlja admina!");
   {
      new player, level, string[512];
      if(sscanf(params, "ud", player, level)) return SendClientMessage(playerid, -1, "San Miami Pomoc | "ZUTA"/postaviadmina [ID/Ime] [Level (1-6)]");
      if(!IsPlayerConnected(player)) return SCM(playerid, -1,""CRVENA"SM: "BELA"Pogresan ID!");
      if(level < 0 || level > 6) return SendClientMessage(playerid, -1, ""CRVENA"SM: "SIVA"Admin Level ne moze biti manji od 0 i veci od 6!");
      PlayerInfo[player][pAdmin] = level;
      format(string, sizeof(string), ""ZUTA"A | "BELA"Admin %s vam je postavio %d Admin Level.", GetName(playerid), level);
      SendClientMessage(player, -1, string);
      format(string, sizeof(string), ""ZUTA"A | "BELA"Igracu %s ste postavili Admin Level na %d.", GetName(player), level);
      SendClientMessage(playerid, -1, string);
      if(level == 0)
      {
         SetPlayerColor(player, BELA2);
         AdminDuty[player] = 0;
      }
      else
      {
         PlayerInfo[player][pAdminpin] = 10000+random(899999);
         new INI:File = INI_Open(Korisnici(player));
         INI_WriteInt(File,"Adminpin",PlayerInfo[player][pAdminpin]);
         INI_Close(File);
         format(string, sizeof(string), ""ZUTA"A | "BELA"Vas pin kod je: %d  "CRVENA"OBAVEZNO ZAPISI", PlayerInfo[player][pAdminpin]);
         SendClientMessage(player, -1, string);
         new arank[128];
         if(PlayerInfo[playerid][pSkripter] == 1) { arank = "Skripter"; }
         else if(PlayerInfo[playerid][pVlasnik] == 1) { arank = "Vlasnik"; }
         else if(PlayerInfo[playerid][pAdmin] == 6) { arank = "Direktor"; }
         else { arank = "Admin"; }
         format(string, sizeof(string), "Cestitamo Vam, postali ste admin na San Miami RolePlay serveru!\nAdmin Level %d Vam je dao %s %s.\nVazno : Pri svakom ulasku na server trazice Vam se provera PIN koda radi sigurnosti!\nZapisite negde ovaj broj na papir ili neki txt dokument i sacuvajte, da znate za ubuduce!\nKOD : %d",level,arank, GetName(playerid),PlayerInfo[player][pAdminpin]);
         ShowPlayerDialog(player, 336, DIALOG_STYLE_MSGBOX, "Admin", string, "Uredu", "");
      }
      SavePlayer(player);
   }
   else
   {
       SendClientMessage(playerid, -1, ""CRVENA"SM: "SIVA"Samo Vlasnik!");
   }
   return 1;
}[/pawn]

Neke slike/video za lakse dobivanje pomoci(neobavezno): https://imgur.com/B0Df5no
Founder of
Digression Community

PROBAJ OVAKO
[pawn] YCMD:postaviadmina(playerid, params[],help)
{
    #pragma unused help
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"UN:SP ~ "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
   if(PlayerInfo[playerid][pAdmin] == 6 || IsPlayerAdmin(playerid))
   {
      new player, level, string[512];
      if(sscanf(params, "ud", player, level)) return SendClientMessage(playerid, -1, "UN:SP ~ "BELA"/postaviadmina [ID/Ime] [Level (1-6)]");
      if(!IsPlayerConnected(player)) return SCM(playerid, -1,""SPLAVA"UN:SP "BELA"Pogresan ID!");
      if(level < 0 || level > 6) return SendClientMessage(playerid, -1, ""SPLAVA"UN:SP "BELA"Admin Level ne moze biti manji od 0 i veci od 6!");
      PlayerInfo[player][pAdmin] = level;
      format(string, sizeof(string), ""SPLAVA"A | "BELA"Admin %s vam je postavio %d Admin Level.", GetName(playerid), level);
      SendClientMessage(player, -1, string);
      format(string, sizeof(string), ""SPLAVA"A | "BELA"Igracu %s ste postavili Admin Level na %d.", GetName(player), level);
      SendClientMessage(playerid, -1, string);
      if(level == 0)
      {
         SetPlayerColor(playerid, BELA2);
         AdminDuty[player] = 0;
      }
      else
      {
         PlayerInfo[player][pAdminpin] = 10000+random(899999);
         new INI:File = INI_Open(Korisnici(player));
         INI_WriteInt(File,"Adminpin",PlayerInfo[player][pAdminpin]);
         INI_Close(File);
         format(string, sizeof(string), ""SPLAVA"A | "BELA"Vas pin kod je: %d  "BELA"OBAVEZNO ZAPISI", PlayerInfo[player][pAdminpin]);
         SendClientMessage(player, -1, string);
         new arank[128];
         if(PlayerInfo[playerid][pSkripter] == 1) { arank = "Skripter"; }
         else if(PlayerInfo[playerid][pVlasnik] == 1) { arank = "Vlasnik"; }
         else if(PlayerInfo[playerid][pAdmin] == 6) { arank = "Direktor"; }
         else { arank = "Admin"; }
         format(string, sizeof(string), "Cestitamo Vam, postali ste admin na United Nation StatePlay serveru!\nAdmin Level %d Vam je dao %s %s.\nVazno : Pri svakom ulasku na server trazice Vam se provera PIN koda radi sigurnosti!\nZapisite negde ovaj broj na papir ili neki txt dokument i sacuvajte, da znate za ubuduce!\nKOD : %d",level,arank, GetName(playerid),PlayerInfo[player][pAdminpin]);
         ShowPlayerDialog(player, 336, DIALOG_STYLE_MSGBOX, "Admin", string, "Uredu", "");
      }
      SavePlayer(player);
   }
   else
   {
       SendClientMessage(playerid, -1, ""SPLAVA"UN:SP "BELA"Samo Vlasnik!");
   }
   return 1;
}
[/pawn]

Gamemod: Spotify Community
Owner: Nodze ( Dzenan Levic )

Hvala brat puno, radi!  ;D
Founder of
Digression Community



RijeÅ¡enje je naÄ'eno.
heroin rap - Moskri u kuci, od sledece lajne glava ce mi puci