SA-MP Forums Archive
what do these errors mean someone tell me - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: what do these errors mean someone tell me (/showthread.php?tid=373336)



what do these errors mean someone tell me - aa14 - 30.08.2012

Help what are these errors I need help please!
(77996) : error 017: undefined symbol "cmdtext"
(77996) : warning 215: expression has no effect
(77996) : warning 215: expression has no effect
(77996) : error 001: expected token: ";", but found ")"
(77996) : error 029: invalid expression, assumed zero
(77996) : fatal error 107: too many error messages on one line
(77996) : error 017: undefined symbol "cmdtext"
(77996) : error 001: expected token: ";", but found ")"
(77996) : error 029: invalid expression, assumed zero
(77996) : fatal error 107: too many error messages on one line
Код:
 if (strcmp("/fgate", cmdtext true, 10) == );
 {
     if (IsPlayerInRangeOfPoint(playerid, 15,1811.59, -1795.36, 13.87))
     {
      if(fdg == 1 || fdg2 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
   MoveObject(fdgate1,1811.59, -1782.96, 13.87,5);
   MoveObject(fdgate2,1811.59, -1808.19, 13.87,5);
   SetTimer("GateClose7", 10000, 0);
   SendClientMessage(playerid, COLOR_BLUE,"Fire Department Gate is Open and will Close in 10 seconds.");
   format(string, sizeof(string), "* %s takes his/her remote and opens a gate.", sendername);
   ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
   fdg = 1;
   fdg2 = 1;
   return 1;
  }
 }



Re: what do these errors mean someone tell me - lamarr007 - 30.08.2012

pawn Код:
if (!strcmp(cmdtext, "/fgate"))
    {
        if (IsPlayerInRangeOfPoint(playerid, 15,1811.59, -1795.36, 13.87))
        {
            if(fdg == 1 || fdg2 == 1) return SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened");
            new string[64], sendername[MAX_PLAYER_NAME];
            MoveObject(fdgate1,1811.59, -1782.96, 13.87,5);
            MoveObject(fdgate2,1811.59, -1808.19, 13.87,5);
            SetTimer("GateClose7", 10000, 0);
            SendClientMessage(playerid, COLOR_BLUE,"Fire Department Gate is Open and will Close in 10 seconds.");
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "* %s takes his/her remote and opens a gate.", sendername);
            ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
            fdg = 1;
            fdg2 = 1;
        }
        return 1;
    }