A little problem I have
#1

I get this
Код:
C:\Documents and Settings\YkZBoY\Desktop\dec-lands\gamemodes\decvtesteeeeeee.pwn(148) : error 010: invalid function or declaration
C:\Documents and Settings\YkZBoY\Desktop\dec-lands\gamemodes\decvtesteeeeeee.pwn(12363) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
On this script

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
    {
      if(strcmp(cmdtext, "/n", true) == 0)
      {
    new idx;
          new string[150];
          if(PlayerInfo[playerid][pMuted] == 1) return SendClientMessage(playerid, COLOR_GREY, "You are muted from the newbie chat channel.");
          if(NewbieTimer[playerid] > 0)
          {
              format(string, sizeof(string), "You must wait another %d seconds.", NewbieTimer[playerid]);
              return SendClientMessage(playerid, COLOR_GREY, string);
          }
          new result[64];
          new length = strlen(cmdtext);
          new offset = idx;
          while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
          {
              result[idx - offset] = cmdtext[idx];
              idx++;
          }
          result[idx - offset] = EOS;
          if(!strlen(result)) return SendClientMessage(playerid, COLOR_GREEN, "{33CCFF}USAGE:{FFFFFF} /n [text]");
          if(strlen(result) > 108) return SendClientMessage(playerid, COLOR_GREEN, "The length of your message must be less than 108 characters.");
          if(PlayerInfo[playerid][pAdmin] < 1)
          {
              NewbieTimer[playerid] = 30;
          }
          if(PlayerInfo[playerid][pAdmin] < 1)
          {
              format(string, sizeof(string), "** Newbie %s: %s", GetPlayerNameEx(playerid), result);
          }
          if(PlayerInfo[playerid][pAdmin] == 1)
          {
              format(string, sizeof(string), "** Moderator %s: %s", GetPlayerNameEx(playerid), result);
          }
          if(PlayerInfo[playerid][pAdmin] >= 2)
          {
              format(string, sizeof(string), "** Admin %s: %s", GetPlayerNameEx(playerid), result);
          }
          SendClientMessageToAll(COLOR_GREEN, string);
          return 1;
      }
Reply


Messages In This Thread
A little problem I have - by Shannkz - 21.08.2012, 15:39
Re: A little problem I have - by Akira297 - 21.08.2012, 15:40
Re: A little problem I have - by Misiur - 21.08.2012, 15:40
Re: A little problem I have - by Shannkz - 21.08.2012, 15:42
Re: A little problem I have - by Misiur - 21.08.2012, 15:43
Re: A little problem I have - by Akira297 - 21.08.2012, 15:44
Re: A little problem I have - by Shannkz - 21.08.2012, 15:47
Re: A little problem I have - by Misiur - 21.08.2012, 16:06
Re: A little problem I have - by Shannkz - 21.08.2012, 16:10
Re: A little problem I have - by Misiur - 21.08.2012, 16:23

Forum Jump:


Users browsing this thread: 3 Guest(s)