[Pomoc]Admin Komanda

Započeo caupton, Oktobar 19, 2011, 20:15:48 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim:Moj Mod
Detaljan opis problema:Radili smo gagi i ja komandu ali kada udjem na server sa 1340 i ukucam /admini pise opet da nema admina online a ima ih :S :?
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

if (strcmp(cmd, "/admins", true) == 0 || strcmp(cmd, "/admini", true) == 0)
{
        if(IsPlayerConnected(playerid))
     {
         SendClientMessage(playerid, COLOR_YELLOW, " ");
         SendClientMessage(playerid, COLOR_DBLUE, "-|Admini|-");
   foreach (Player, i)
   {
       if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] < 1341 || PlayerInfo[i][pGm] >=1)
  {
  admin ++;
  }
       if(admin == 0) return SendClientMessage(playerid,-1,"{BDB3B3}___________________________");
       if(admin2 == 0) return SCM(playerid,-1,"Nema Online {FF0000}Administratora");
       if(admin1 == 0) return SendClientMessage(playerid,-1,"{BDB3B3}___________________________");
       {
        new admtext[64];
           if(PlayerInfo[i][pAdmin] == 1340) { admtext = "{BDB3B3}[BG]{FF0000}Vlasnik"; }
           else if(PlayerInfo[i][pAdmin] == 1339) { admtext = "{BDB3B3}[BG]{FF0000}Suvlasnik"; }
        else if(PlayerInfo[i][pAdmin] == 1338) { admtext = "{BDB3B3}[BG]{FF0000}Admin Level 6"; }
        else if(PlayerInfo[i][pAdmin] == 1337) { admtext = "{BDB3B3}[BG]{FF0000}Admin Level 5"; }
        else if(PlayerInfo[i][pAdmin] == 4) { admtext = "{BDB3B3}[BG]{FF0000}Admin za Evente"; }
     else if(PlayerInfo[i][pAdmin] == 3) { admtext = "{BDB3B3}[BG]{FF0000}Admin Level 3"; }
     else if(PlayerInfo[i][pAdmin] == 2) { admtext = "{BDB3B3}[BG]{FF0000}Admin Level 2"; }
     else if(PlayerInfo[i][pAdmin] == 1) { admtext = "{BDB3B3}[BG]{FF0000}Admin Level 1"; }
     else if(PlayerInfo[i][pGm] == 1) { admtext = "{BDB3B3}[BG]{FF0000}GameMaster"; }
     else { admtext = "Gamemoderator"; }
     GetPlayerName(i, sendername, sizeof(sendername));
     if(AdminDuty[i] == 1)
     {
         format(string, 256, "%s ( %s )", sendername, admtext);
      SendClientMessage(playerid, COLOR_YELLOW, string);
     }
     else if(GmDuty[i] == 1)
     {
         format(string, 256, "%s ( %s )", sendername, admtext);
      SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
     }
     else
     {
      format(string, 256, "%s ( %s )", sendername, admtext);
      SendClientMessage(playerid, COLOR_WHITE, string);
     }
    }
   }
  }
  return 1;
}

dragan12

if (strcmp(cmd, "/admins", true) == 0 || strcmp(cmd, "/admini", true) == 0)
{
        if(IsPlayerConnected(playerid))
     {
         SendClientMessage(playerid, COLOR_YELLOW, " ");
         SendClientMessage(playerid, COLOR_DBLUE, "-|Admini|-");
   foreach (Player, i)
   {
       if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] < 1341 || PlayerInfo[i][pGm] >=1)
  {
  admin ++;
  }
       if(admin == 0) return SendClientMessage(playerid,-1,"{BDB3B3}___________________________"),SCM(playerid,-1,"Nema Online {FF0000}Administratora"),SendClientMessage(playerid,-1,"{BDB3B3}___________________________");
        new admtext[64];
           if(PlayerInfo[i][pAdmin] == 1340) { admtext = "{BDB3B3}[BG]{FF0000}Vlasnik"; }
           else if(PlayerInfo[i][pAdmin] == 1339) { admtext = "{BDB3B3}[BG]{FF0000}Suvlasnik"; }
        else if(PlayerInfo[i][pAdmin] == 1338) { admtext = "{BDB3B3}[BG]{FF0000}Admin Level 6"; }
        else if(PlayerInfo[i][pAdmin] == 1337) { admtext = "{BDB3B3}[BG]{FF0000}Admin Level 5"; }
        else if(PlayerInfo[i][pAdmin] == 4) { admtext = "{BDB3B3}[BG]{FF0000}Admin za Evente"; }
     else if(PlayerInfo[i][pAdmin] == 3) { admtext = "{BDB3B3}[BG]{FF0000}Admin Level 3"; }
     else if(PlayerInfo[i][pAdmin] == 2) { admtext = "{BDB3B3}[BG]{FF0000}Admin Level 2"; }
     else if(PlayerInfo[i][pAdmin] == 1) { admtext = "{BDB3B3}[BG]{FF0000}Admin Level 1"; }
     else if(PlayerInfo[i][pGm] == 1) { admtext = "{BDB3B3}[BG]{FF0000}GameMaster"; }
     else { admtext = "Gamemoderator"; }
     GetPlayerName(i, sendername, sizeof(sendername));
     if(AdminDuty[i] == 1)
     {
         format(string, 256, "%s ( %s )", sendername, admtext);
      SendClientMessage(playerid, COLOR_YELLOW, string);
     }
     else if(GmDuty[i] == 1)
     {
         format(string, 256, "%s ( %s )", sendername, admtext);
      SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
     }
     else
     {
      format(string, 256, "%s ( %s )", sendername, admtext);
      SendClientMessage(playerid, COLOR_WHITE, string);
     }
    }
   }
  return 1;
}

Kada dodajes ono sto netreba bez mog znanja. Aj probaj ovako

2. Warninga


\gamemodes\BetaGaming.pwn(53067) : warning 203: symbol is never used: "admin1"
\gamemodes\BetaGaming.pwn(53067) : warning 203: symbol is never used: "admin2"

nigdje se ne koriste mozes izbrisat...
Vratio sam se ponovo ocekjute novi server...

ali toga nema uopste znaci ta linija nema u modu :S

Citat: |BD|Sch0pEr poslato Oktobar 19, 2011, 20:24:01 POSLE PODNE
ali toga nema uopste znaci ta linija nema u modu :S

znam da nema trazi admin1 i admin2 na CTRL+ f
Vratio sam se ponovo ocekjute novi server...

Obrisao sam
Respect:Ivan hvala ti puno  :-* Duzan sam ti za nesto

Moze Ovde LOCK!!