SA-MP Forums Archive
Ajuda erro :( :( no meu sistema de mochila - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: Ajuda erro :( :( no meu sistema de mochila (/showthread.php?tid=548703)



Ajuda erro :( :( no meu sistema de mochila - BHTMestre - 01.12.2014

pawn Код:
C:\Users\Jefferson\Desktop\Files\C- GAMEMODES\Estou Fazendo\pawno\include\inventory.inc(5) : error 010: invalid function or declaration
C:\Users\Jefferson\Desktop\Files\C- GAMEMODES\Estou Fazendo\pawno\include\inventory.inc(21) : error 010: invalid function or declaration
C:\Users\Jefferson\Desktop\Files\C- GAMEMODES\Estou Fazendo\pawno\include\inventory.inc(25) : error 010: invalid function or declaration
C:\Users\Jefferson\Desktop\Files\C- GAMEMODES\Estou Fazendo\pawno\include\inventory.inc(28) : error 010: invalid function or declaration
C:\Users\Jefferson\Desktop\Files\C- GAMEMODES\Estou Fazendo\pawno\include\inventory.inc(36) : error 010: invalid function or declaration
C:\Users\Jefferson\Desktop\Files\C- GAMEMODES\Estou Fazendo\pawno\include\inventory.inc(36 -- 46) : error 010: invalid function or declaration
C:\Users\Jefferson\Desktop\Files\C- GAMEMODES\Estou Fazendo\pawno\include\inventory.inc(36 -- 49) : error 010: invalid function or declaration
C:\Users\Jefferson\Desktop\Files\C- GAMEMODES\Estou Fazendo\pawno\include\inventory.inc(36 -- 49) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

8 Erros.
Linhas

pawn Код:
#include <a_samp>
#include <inventory>
#include <zcmd>
#include <sscanf2>
#include <colors>

new items[20], ammount, id;

CMD:additem(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return 0;

    if (sscanf(params, "rs[20]d", id, items, ammount)) return SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/additem <playerid> <itemname> <ammount>\"");

    new string [32];
    AddItem(id, items, ammount);
    format(string, sizeof(string), "ID:%d gave %d %s to you.", playerid, ammount, items);
    SendClientMessage(id, COLOR_GREEN, string);
    format(string, sizeof(string), "You gave %d %s to ID:%d", ammount, items, id);
    SendClientMessage(playerid, COLOR_GREEN, string);

    return true;
}

CMD:inv(playerid, params[])
{
    ShowInventory(playerid);
    return 1;
}

public OnPlayerConnect(playerid)
{
    LoadInventory(playerid);
    return 1;
}

public OnPlayerDisconnect(playerid)
{
  SaveInventory(playerid);
  return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
  InventoryOnDialogResponse(playerid, dialogid, response, inputtext);
  return 1;
}

public OnPlayerUseItem(playerid,ItemName[])
{

  new Float:X, Float:Y, Float:Z, String[128], Name[25];
  GetPlayerPos(playerid, X, Y, Z);
  GetPlayerName(playerid, Name, 25);
  if(!strcmp(ItemName, items ,true))
  {
    format(String, 128, "(( [%d] %s: shows his %s ))", playerid, Name, items);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if (IsPlayerInRangeOfPoint(i, 7.0 ,X, Y, Z))
        {
            SendClientMessage(i, 0xC0C0C0FF, String);
        }
    }
    return 1;
  }
  return 0;
}



Respuesta: Ajuda erro :( :( no meu sistema de mochila - TorresPutado - 01.12.2014

Olha por oque eu vi, Tudo esta relacionado a uma Include que deve esta faltando no seu Pawno, Ou Filterscript, Ela tambem pode esta errada ou com algum devido poblema! Tente reinstala-la! Link da Include: https://sampforum.blast.hk/showthread.php?tid=130436! Boa Sorte <.<!


Re: Respuesta: Ajuda erro :( :( no meu sistema de mochila - BHTMestre - 01.12.2014

Quote:
Originally Posted by TorresPutado
Посмотреть сообщение
Olha por oque eu vi, Tudo esta relacionado a uma Include que deve esta faltando no seu Pawno, Ou Filterscript, Ela tambem pode esta errada ou com algum devido poblema! Tente reinstala-la! Link da Include: https://sampforum.blast.hk/showthread.php?tid=130436! Boa Sorte <.<!
pawn Код:
C:\Users\Jefferson\Desktop\Files\C- GAMEMODES\Estou Fazendo\pawno\include\sscanf2.inc(227) : warning 202: number of arguments does not match definition
C:\Users\Jefferson\Desktop\Files\C- GAMEMODES\Estou Fazendo\pawno\include\sscanf2.inc(240) : error 025: function heading differs from prototype
C:\Users\Jefferson\Desktop\Files\C- GAMEMODES\Estou Fazendo\filterscripts\testando123.pwn(33) : error 017: undefined symbol "LoadInventory"
C:\Users\Jefferson\Desktop\Files\C- GAMEMODES\Estou Fazendo\filterscripts\testando123.pwn(39) : error 017: undefined symbol "SaveInventory"
pawn Код:
#include <a_samp>
#include <j_inventory>
#include <zcmd>
#include <sscanf2>
#include <colors>

new items[20], ammount, id;

CMD:additem(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return 0;

    if (sscanf(params, "rs[20]d", id, items, ammount)) return SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/additem <playerid> <itemname> <ammount>\"");

    new string [32];
    AddItem(id, items, ammount);
    format(string, sizeof(string), "ID:%d gave %d %s to you.", playerid, ammount, items);
    SendClientMessage(id, COLOR_GREEN, string);
    format(string, sizeof(string), "You gave %d %s to ID:%d", ammount, items, id);
    SendClientMessage(playerid, COLOR_GREEN, string);

    return true;
}

CMD:inv(playerid, params[])
{
    ShowInventory(playerid);
    return 1;
}

public OnPlayerConnect(playerid)
{
    LoadInventory(playerid);
    return 1;
}

public OnPlayerDisconnect(playerid)
{
  SaveInventory(playerid);
  return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
  InventoryOnDialogResponse(playerid, dialogid, response, inputtext);
  return 1;
}

public OnPlayerUseItem(playerid,ItemName[])
{

  new Float:X, Float:Y, Float:Z, String[128], Name[25];
  GetPlayerPos(playerid, X, Y, Z);
  GetPlayerName(playerid, Name, 25);
  if(!strcmp(ItemName, items ,true))
  {
    format(String, 128, "(( [%d] %s: shows his %s ))", playerid, Name, items);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if (IsPlayerInRangeOfPoint(i, 7.0 ,X, Y, Z))
        {
            SendClientMessage(i, 0xC0C0C0FF, String);
        }
    }
    return 1;
  }
  return 0;
}



Respuesta: Ajuda erro :( :( no meu sistema de mochila - TorresPutado - 01.12.2014

Tente colocar essas Defines no topo da FilterScript/GM:
pawn Код:
#define LoadInventory 1067
#define SaveInventory 1068
__________________________________________________ _____
Ja Ja atualizo aki! Vo ve aki o outro erro!


Re: Respuesta: Ajuda erro :( :( no meu sistema de mochila - BHTMestre - 01.12.2014

Quote:
Originally Posted by TorresPutado
Посмотреть сообщение
Tente colocar essas Defines no topo da FilterScript/GM:
pawn Код:
#define LoadInventory 1067
#define SaveInventory 1068
__________________________________________________ _____
Ja Ja atualizo aki! Vo ve aki o outro erro!
nenhum funcionou ;(