12.04.2016, 00:10
to colocando esse sistema
http://pastebin.com/mb0UeWS7
ja q eu n consegui aqle outro inventario sу q da esse erro
Alguem me ajuda ?
Editado:eu fiz um download dela e consegui sу q agora da 13 erros.
Linhas com o erro
Esse aq й mto grande sу vou por um pedaзo se quiser o resto so falar.
http://pastebin.com/mb0UeWS7
ja q eu n consegui aqle outro inventario sу q da esse erro
Alguem me ajuda ?
Editado:eu fiz um download dela e consegui sу q agora da 13 erros.
pawn Код:
C:\Users\Gustavo\Desktop\PB explosive\Sabotage H1Z1\Gamemodes\PBE.pwn(217) : error 017: undefined symbol "MAX_INVENTORY_SLOTS"
C:\Users\Gustavo\Desktop\PB explosive\Sabotage H1Z1\Gamemodes\PBE.pwn(277) : error 017: undefined symbol "MAX_ITENS_WORLD"
C:\Users\Gustavo\Desktop\PB explosive\Sabotage H1Z1\Gamemodes\PBE.pwn(2272) : error 001: expected token: "]", but found "["
C:\Users\Gustavo\Desktop\PB explosive\Sabotage H1Z1\Gamemodes\PBE.pwn(2272) : error 029: invalid expression, assumed zero
C:\Users\Gustavo\Desktop\PB explosive\Sabotage H1Z1\Gamemodes\PBE.pwn(2272) : error 029: invalid expression, assumed zero
C:\Users\Gustavo\Desktop\PB explosive\Sabotage H1Z1\Gamemodes\PBE.pwn(2272) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
PHP код:
enum enum_pInventory
{
invSlot[MAX_INVENTORY_SLOTS], //bug 217
invSelectedSlot,
invSlotAmount[MAX_INVENTORY_SLOTS],
Float:invArmourStatus[MAX_INVENTORY_SLOTS]
}
PHP код:
new ItensWorld[MAX_ITENS_WORLD][enum_ItensWorld]; // Bug 277
PHP код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Text:INVALID_TEXT_DRAW)
{
if(Player[playerid][inInventory])
HideInventory(playerid);
}
else if(clickedid == inventario_close[0])
{
HideInventory(playerid);
}
else if(clickedid == inventario_usar)
{
if(pInventory[playerid][invSelectedSlot] == -1)
return 0;
new slot = pInventory[playerid][invSelectedSlot];
pInventory[playerid][invSelectedSlot] = -1;
UseItem(playerid, slot, Itens[pInventory[playerid][invSlot][slot]][item_id]); //Erro 2272
}
else if(clickedid == inventario_split[0])
{