[HELP]Error to the copillar [GM] GangWar2.0
#1

Hello to all good my problem it is that when trying to copound gamemode [GM] GangWar2.0 gives the following error me:
Код:
C:\Documents and Settings\Peruxxo\Escritorio\as.pwn(6) : fatal error 100: cannot read from file: "utils"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
That I must Do why walks well I need it is urgent.
If they want to see gamemode he is the following one:
http://forum.sa-mp.com/index.php?topic=107325.0
Reply
#2

Search for the "utils" download and then put that file into Pawno-->includes!
Reply
#3

I had the same problem once, but i already had the Utils. I fixed it by redownloading the utils file.
Reply
#4

They excuse could give the direction me to unload it?
Reply
#5

how many pawno folders you got in your comp say you add the inc to one pawno/includes folder and not in the folder were you first opened the pawno.exe then it will not read it. so that could be the cause.
Reply
#6

In my folder of pawno => include not this that file
Reply
#7

Quote:
Originally Posted by kingworldsoft
In my folder of pawno => include not this that file
what do you mean "not this that file"? you confused me....
Reply
#8

In the folder include this the file utils.inc already does not look for and not this to it me they could not happen?
Reply
#9

sorry i cant help you your not making any sense.
Reply
#10

They excuse already I found utils.inc but now it gives the following error me:
Код:
C:\Documents and Settings\Peruxxo\Escritorio\gerra.pwn(94) : error 017: undefined symbol "gTeam"
C:\Documents and Settings\Peruxxo\Escritorio\gerra.pwn(94) : warning 215: expression has no effect
C:\Documents and Settings\Peruxxo\Escritorio\gerra.pwn(94) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Peruxxo\Escritorio\gerra.pwn(94) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Peruxxo\Escritorio\gerra.pwn(94) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
the code of utils.inc is:
Код:
IsNumeric(const string[])
{
  for (new i = 0, j = strlen(string); i < j; i++)
  {
   if (string > '9' || string < '0') return 0;
  }
  return 1;
}

ReturnUser(text[], playerid = INVALID_PLAYER_ID)
{
  new pos = 0;
  while (text[pos] < 0x21) // Strip out leading spaces
  {
   if (text[pos] == 0) return INVALID_PLAYER_ID; // No passed text
   pos++;
  }
  new userid = INVALID_PLAYER_ID;
  if (IsNumeric(text[pos])) // Check whole passed string
  {
   // If they have a numeric name you have a problem (although names are checked on id failure)
   userid = strval(text[pos]);
   if (userid >=0 && userid < MAX_PLAYERS)
   {
     if(!IsPlayerConnected(userid))
     {
      /*if (playerid != INVALID_PLAYER_ID)
      {
        SendClientMessage(playerid, 0xFF0000AA, "User not connected");
      }*/
      userid = INVALID_PLAYER_ID;
     }
     else
     {
      return userid; // A player was found
     }
   }
   /*else
   {
     if (playerid != INVALID_PLAYER_ID)
     {
      SendClientMessage(playerid, 0xFF0000AA, "Invalid user ID");
     }
     userid = INVALID_PLAYER_ID;
   }
   return userid;*/
   // Removed for fallthrough code
  }
  // They entered [part of] a name or the id search failed (check names just incase)
  new len = strlen(text[pos]);
  new count = 0;
  new name[MAX_PLAYER_NAME];
  for (new i = 0; i < MAX_PLAYERS; i++)
  {
   if (IsPlayerConnected(i))
   {
     GetPlayerName(i, name, sizeof (name));
     if (strcmp(name, text[pos], true, len) == 0) // Check segment of name
     {
      if (len == strlen(name)) // Exact match
      {
        return i; // Return the exact player on an exact match
        // Otherwise if there are two players:
        // Me and MeYou any time you entered Me it would find both
        // And never be able to return just Me's id
      }
      else // Partial match
      {
        count++;
        userid = i;
      }
     }
   }
  }
  if (count != 1)
  {
   if (playerid != INVALID_PLAYER_ID)
   {
     if (count)
     {
      SendClientMessage(playerid, 0xFF0000AA, "Multiple users found, please narrow earch");
     }
     else
     {
      SendClientMessage(playerid, 0xFF0000AA, "No matching user found");
     }
   }
   userid = INVALID_PLAYER_ID;
  }
  return userid; // INVALID_USER_ID for bad return
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)