Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Gospodin Disciplina poslato Januar 07, 2015, 11:34:05 PRE PODNE

Naslov: [Pomoc] YSI Amx Base
Poruka od: Gospodin Disciplina poslato Januar 07, 2015, 11:34:05 PRE PODNE
Skripta koju koristim: GTARP
Detaljan opis problema: Izbacuje mi 3 warninga na y_amx.inc.Update sam na novi YSI i opet isti problem se javlja.
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno): (http://i.pics.rs/l2sk2)
Naslov: Odg: [Pomoc] YSI Amx Base
Poruka od: mario_cacic poslato Januar 07, 2015, 11:40:29 PRE PODNE
otvori mod preko PWN u folderu PAWNO i complide
Naslov: Odg: [Pomoc] YSI Amx Base
Poruka od: Gospodin Disciplina poslato Januar 07, 2015, 11:51:37 PRE PODNE
To sam vec vise puta pokusao i opet se javlja ovaj problem.
Naslov: Odg: [Pomoc] YSI Amx Base
Poruka od: mario_cacic poslato Januar 07, 2015, 11:54:05 PRE PODNE
postavi mi linije te ovdje
Naslov: Odg: [Pomoc] YSI Amx Base
Poruka od: Gospodin Disciplina poslato Januar 07, 2015, 12:02:28 POSLE PODNE
Citat


OVDE IZBACUJE ERROR - stock AMX_GetBaseCount(E_AMX_TABLE:table, &base, &count)
{
   P:3("AMX_GetBaseCount called: %i, %i, %i", _:table, base, count);
   switch (table)
   {
      case AMX_TABLE_PUBLICS:
      {
         base = AMX_HEADER_PUBLICS;
         count = (AMX_HEADER_NATIVES - base) / 8;
      }
      case AMX_TABLE_NATIVES:
      {
         base = AMX_HEADER_NATIVES;
         count = (AMX_HEADER_LIBRARIES - base) / 8;
      }
      case AMX_TABLE_LIBRARIES:
      {
         base = AMX_HEADER_LIBRARIES;
         count = (AMX_HEADER_PUBVARS - base) / 8;
      }
      case AMX_TABLE_PUBVARS:
      {
         base = AMX_HEADER_PUBVARS;
         count = (AMX_HEADER_TAGS - base) / 8;
      }
      case AMX_TABLE_TAGS:
      {
         base = AMX_HEADER_TAGS;
         count = (AMX_HEADER_NAMETABLE - base) / 8;
      }
      default:
      {
         base = 0;
         count = 0;
      }
   }
}

#define AMX_GetPublicEntry(%0) AMX_GetEntry(AMX_TABLE_PUBLICS,%0)
#define AMX_GetNativeEntry(%0) AMX_GetEntry(AMX_TABLE_NATIVES,%0)
#define AMX_GetLibraryEntry(%0) AMX_GetEntry(AMX_TABLE_LIBRARIES,%0)
#define AMX_GetPubvarEntry(%0) AMX_GetEntry(AMX_TABLE_PUBVARS,%0)
#define AMX_GetTagEntry(%0) AMX_GetEntry(AMX_TABLE_TAGS,%0)

stock AMX_GetEntry(E_AMX_TABLE:table, idx, &buffer, const pattern[] = "")
{
   P:3("AMX_GetEntry called: %i, %i, %i, \"%s\"", _:table, idx, buffer, pattern);
   new
OVDE IZBACUJE ERROR -   base,
      count;
   if (table == AMX_TABLE_PUBLICS && idx == 0)
   {
      // Special case where we can use native functions.
      idx = funcidx(pattern);
      if (idx == -1)
      {
         idx = 0;
      }
      else
      {
         buffer = idx * 8 + AMX_HEADER_PUBLICS;
         return idx + 1;
      }
   }

stock AMX_GetNamePrefix(E_AMX_TABLE:table, idx, buffer[32], pattern)
{
   P:3("AMX_GetNamePrefix called: %i, %i, \"%s\", %i", _:table, idx, buffer, pattern);
   new
OVDE IZBACUJE ERROR - base,
      count;
   AMX_GetBaseCount(table, base, count);
   if (idx < count)
   {
      new
         addr,
         pos = idx * 8 + base + 4;
      do
      {
         // Get the address of the string.
         #emit LREF.S.pri                pos
         #emit STOR.S.pri                addr
         // Get the 4 bytes 5 bytes before this position.
         addr += AMX_BASE_ADDRESS;
         #emit LREF.S.pri                addr
         #emit STOR.S.pri                addr
         ++idx;
         if (addr == pattern)
         {
            #emit LREF.S.pri            pos
            #emit STOR.S.pri            addr
            AMX_ReadString(AMX_BASE_ADDRESS + addr, buffer);
            return idx;
         }
         pos += 8;
      }
      while (idx < count);
   }
   return 0;
}
Naslov: Odg: [Pomoc] YSI Amx Base
Poruka od: ▂ ▃ ▅ Rudimental ▅ ▃ ▂ poslato Januar 07, 2015, 15:18:58 POSLE PODNE
Imas u modu ili u nekom includu koji tvoj mod koristi neki public ili stock "base" trebas ga preimenovati i problem resen...