[Pomoc] Error

Započeo DruzenjeVocko, Maj 29, 2012, 14:38:30 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim: Moja Global World
Detaljan opis problema: Izbacuje mi 4 errora
Dio skripte:        if(strcmp(cmd, "/mutead", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "Koristi: /mutead [ID Igraca/Deo Imena] [vreme] [razlog]");
            return 1;
         }
         new playa;
         new time;
         playa = ReturnUser(tmp);
         tmp = strtok(cmdtext, idx);
         time = strval(tmp);
         if (PlayerInfo[playerid][pAdmin] >= 4)
         {
             if(IsPlayerConnected(playa))
             {
                 if(playa != INVALID_PLAYER_ID)
                 {
                    GetPlayerName(playa, giveplayer, sizeof(giveplayer));
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  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: /mutead [ID Igraca/Deo Imena] [vreme] [razlog]");
                     return 1;
                  }
                  if(PlayerInfo[playa][pMuted] == 0)
                  {

                  }
                  else
                  {
                     PlayerInfo[playa][pADMute] = 0;
                     PlayerInfo[playa][pADMuteTime] = 0;
                     format(string, sizeof(string), ""rd"|Test Server|{FFFFFF} "rd"%s {FFFFFF}je skinuta zabranu /ad od "rd"%s!",giveplayer ,sendername);
                     ABroadCast(COLOR_WHITE,string,1);
                     OVDE MI IZBACUJE ERRORE   printf(""COLOR_RED"|Test Server|{FFFFFF} %s unsilenced %s",sendername,  giveplayer);
                  }
               }
            }
         }
         else
         {
            SendClientMessage(playerid, WHITE, ""COLOR_RED"|Test Server|{FFFFFF} Niste ovlasteni da koristite tu komandu!");
         }
      }
      return 1;
   }
Neke slike/video za lakse dobivanje pomoci(neobavezno):

zameni tu liniju sa ovom

printf("|Test Server|{FFFFFF} %s unsilenced %s",sendername,  giveplayer);
Respect: Gagi, Maki187, Phillips, TerminuS, Neno, Lepotic, [AL] K4[Я]!K3â,,¢, Gotti747