Errors with command
#1

when i put in my script commands /ooc i have this errors.. why ??

Quote:

C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1337) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1707) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1764) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1773) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1809) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1810) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1815) : error 004: function "PublicLog" is not implemented
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1817) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1819) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1826) : error 004: function "BroadCast" is not implemented
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1828) : error 004: function "ABroadCast" is not implemented
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1833) : error 004: function "BroadCast" is not implemented
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1835) : error 004: function "ABroadCast" is not implemented
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1842) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1844) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(16845) : warning 203: symbol is never used: "sendername"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

command:
Код:
if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
           if(gPlayerLogged[playerid] == 0)
           {
               SendClientMessage(playerid, COLOR_GREY, "** Moraљ se prijaviti !");
               return 1;
           }
         if ((noooc) && PlayerInfo[playerid][pAdmin] < 1)
         {
            SendClientMessage(playerid, COLOR_GRAD2, "** Admin je ISKLJUČIO ooc kanal !");
            return 1;
         }
         if(PlayerInfo[playerid][pMuted] == 1)
         {
            SendClientMessage(playerid, TEAM_CYAN_COLOR, "Nemoћeљ pričati, mutan si");
            return 1;
         }
         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, "Koriљtenje: (/o)oc [OOC chat]");
            return 1;
         }
         if(PlayerInfo[playerid][pAdmin] == 0)
         {
            format(string, sizeof(string), "(( %s ))", (result));
         }
         else
         {
             format(string, sizeof(string), "[[ %s ]]", (result));
         }
            SendPlayerMessageToAll(playerid, string);
         new year,month,day;
         getdate(year, month, day);
         new hour, minute, second;
         gettime(hour,minute,second);
         format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (OOC): (%s)",day,month,year,hour,minute,second, sendername, result);
         PublicLog(string);
      }
      return 1;
   }
      if(strcmp(cmd, "/noooc", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         if (PlayerInfo[playerid][pAdmin] >= 2 && (!noooc))
         {
            noooc = 1;
            BroadCast(COLOR_NICERED, "** OOC chat isključen od strane Admina !");
            format(string, sizeof(string), "[ADMIN]: %s je isključio OOC", sendername);
            ABroadCast(COLOR_LIGHTRED, string, 5);
         }
         else if (PlayerInfo[playerid][pAdmin] >= 2 && (noooc))
         {
            noooc = 0;
            BroadCast(TEAM_GROVE_COLOR, "** OOC chat uključen od strane Admina !");
            format(string, sizeof(string), "[ADMIN]: %s je uključio OOC", sendername);
            ABroadCast(COLOR_LIGHTRED, string, 5);
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD1, "** Niste ovlaљteni koristiti tu komandu!");
         }
      }
      return 1;
   }
Reply
#2

Stop copying scripts and learn to do it yourself. Also, can you read? The messages are clear, right?
Function is not implemented .. What could that possibly mean?

Sorry that I'm being so cynical right now, but I'm so tired of all these people that just blatantly copy scripts without them actually knowing what they do or how they work.
Reply
#3

I Agree with you vince. I Know for sure this is copied.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)