[Pomoc]Nece mi Compile

Započeo ♥ BMW ♥, Januar 04, 2012, 12:08:07 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Unt
Detaljan opis problema: Uradim izmjene u GM, i krenem da Compile nece, samo se skripta zatvori. Molim vas da mi pomognete
Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno): //


Village's Roleplay USKORO...

Village's Roleplay USKORO...

vlado_plavsic

Previse gresaka.Proveri to sto si poslednje radio i nadji greske.Pozdrav

zadnje sam ovo radio, nezz gdje je ovdje greska

Citatif(strcmp(cmd, "/government", true) == 0 || strcmp(cmd, "/gov", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         if(gTeam[playerid] != 2)
         {
             if(PlayerInfo[playerid][pLeader] != 7)
             {
                SendClientMessage(playerid, COLOR_GREY, "** Nisi policajac !");
                return 1;
            }
         }
         if(PlayerInfo[playerid][pMuted] == 1)
         {
            SendClientMessage(playerid, TEAM_CYAN_COLOR, "Nemozes pricati,usutkan si");
            return 1;
         }
         if(PlayerInfo[playerid][pRank] < 6)
         {
             SendClientMessage(playerid, COLOR_GREY, "** Moras biti Rank 6 kako bi mogao koristiti ovo !");
             return 1;
         }
         if(PlayerInfo[playerid][pDBanned] == 1)
         {
             SendClientMessage(playerid, COLOR_GREY, "** Banan si sa duznosti!");
             return 1;
         }
         new y,m,d;
         new h,mi,s;
         getdate(y,m,d);
         gettime(h,mi,s);
         new length = strlen(cmdtext);
         while ((idx < length) && (cmdtext[idx] <= ' '))
         {
            idx++;
         }
         new offset = idx;
         new result[128];
         while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
         {
            result[idx - offset] = cmdtext[idx];
            idx++;
         }
         result[idx - offset] = EOS;
         if(!strlen(result))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: (/gov)ernment [text]");
            return 1;
         }
         SendClientMessageToAll(COLOR_WHITE, "|___________ Vladine Vijesti ___________|");
         if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
         {
            if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "Casnik %s: %s", sendername, result); }
             if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "Zamjenik Casnika %s: %s", sendername, result); }
             if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Kapetan %s: %s", sendername, result); }
            SendClientMessageToAll(COLOR_BLUE, string);
            format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (vlada): (%s)",d,m,y,h,mi,s, sendername, result);
            RadioChatLog(string);
         }
         else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
         {
            if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "Director %s: %s", sendername, result); }
            if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "Deputy Director %s: %s", sendername, result); }
                if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Assistant of Director. %s: %s", sendername, result); }
            SendClientMessageToAll(COLOR_GRAD5, string);
            format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (vlada): (%s)",d,m,y,h,mi,s, sendername, result);
            RadioChatLog(string);
         }
         else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
         {
             if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "General %s: %s", sendername, result); }
             if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "Sub General %s: %s", sendername, result); }
             if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Captain %s: %s", sendername, result); }
            SendClientMessageToAll(COLOR_GREEN, string);
            format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (vlada): (%s)",d,m,y,h,mi,s, sendername, result);
            RadioChatLog(string);
         }
         else if(PlayerInfo[playerid][pLeader] == 7)
         {
            format(string, sizeof(string), "Gradonacelnik %s: %s", sendername, result);
            SendClientMessageToAll(COLOR_GREY, string);
            format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (vlada): (%s)",d,m,y,h,mi,s, sendername, result);
            RadioChatLog(string);
         }
      }
      return 1;
   }
Poslednja Izmena: Januar 04, 2012, 12:41:01 POSLE PODNE od isk0


Village's Roleplay USKORO...

Village's Roleplay USKORO...