hello
i have nothing in my inventory but im getting this error
i know why im getting this error
its cuz im using AntiItems plugin to give my players the ability to dont need ammo for guns or components to craft items
if u can fix this and make your plugin work with AntiItems plugin please do it. Thanks
Sorry for my bad english
You do not have enough space in your inventory to claim this kit!Solved
deleted post
wdym?
RustYardwdym?
I deleted the post inadvertantly posted in the thread so i removed it = " deleted post" its as simple as that
no problem
i fixed my provlem by removing
{
if (!kit.HasSpaceForItems(player))
return Message("Error.CanClaim.InventorySpace", player.userID);
return null;
}
if (!kit.HasSpaceForItems(player))
return Message("Error.CanClaim.InventorySpace", player.userID);
now any one can take kits no need enventory space if he dont have any space kit items will drop next to him
RustYardno problem
i fixed my provlem by removing
{
if (!kit.HasSpaceForItems(player))
return Message("Error.CanClaim.InventorySpace", player.userID);
return null;
}
if (!kit.HasSpaceForItems(player))
return Message("Error.CanClaim.InventorySpace", player.userID);
now any one can take kits no need enventory space if he dont have any space kit items will drop next to him
The main reason the message appears is that players complained that they lost inventory because it would despawn on the ground when they claimed a kit they did not have the room for,
but my problem is he have nothing in his inventory nothing he is naked he have nothing but he cant take any kit always it says no inventory space but his inventory have nothing in it!
RustYardbut my problem is he have nothing in his inventory nothing he is naked he have nothing but he cant take any kit always it says no inventory space but his inventory have nothing in it!
No as you said in your original post "my problem is i am using antiitems plugin"
u will understantd me if you use antiitems or if you know how it works
its gives any player any item you want like ammo component but not in hist real inventory the real inventory will have nothing on it so you have nothing in your inventory but kits plugin says no inventory space
my
i didnt say "my problem is i am using antiitems plugin" i said this is why i have this problem this is not my problem
I HAVE THE SAME PROBLEM as i use auto kit my other problem is that even if kits are not given the timer still starts on cooldown
AntiItems Actually places Invisible items in your invetory and/or your belt, so the space is being used, you just cant see anything, read the details about AntiItems :)
Quote from AntiItems "This basically works by adding items to hidden slots in the player's inventory, so make sure you choose your items carefully."
yes but its not in main its like backpack hidden. old kits work fine i still use that
Markson
AntiItems Actually places Invisible items in your invetory and/or your belt, so the space is being used, you just cant see anything, read the details about AntiItems :)
Quote from AntiItems "This basically works by adding items to hidden slots in the player's inventory, so make sure you choose your items carefully."
Well if they were being placed in a hidden location other then your "Inventory" the dev would not need to State they are "Hidden slots in the players Inventory" but maybe im wrong. Either way good luck :)
Markson
Well if they were being placed in a hidden location other then your "Inventory" the dev would not need to State they are "Hidden slots in the players Inventory" but maybe im wrong. Either way good luck :)
well explained. and @Rustyard good luck from me too on a "problem you dont have" problem :)
@RustYard
The correct way to fix this would be to change the space being checked, this would keep the "Not enough space" error working, prevent the user from claiming a kit he truly does not have room for, and not spill the overflow items onto the ground. If you know exactly how many spaces you are increasing change the default values in this portion:
internal bool HasSpaceForItems(BasePlayer player)
{
int wearSpacesFree = 7 - player.inventory.containerWear.itemList.Count;
int mainSpacesFree = 24 - player.inventory.containerMain.itemList.Count;
int beltSpacesFree = 6 - player.inventory.containerBelt.itemList.Count;
return (wearSpacesFree >= WearItems.Length &&
beltSpacesFree >= BeltItems.Length &&
mainSpacesFree >= MainItems.Length) || ItemCount <= mainSpacesFree + beltSpacesFree;
} - 1
- 2