- 23 Авг 2023
- 1
- 0
только учусь создавать кастомки и дошел до предметов. Думал сделать улучшение предметов при помощи покупки рецепта. Написал код предмет в игре есть рецепт отображается но нельзя купить его в консоль выдает ошибку.
Cannot create an entity because entity class is NULL -1
Attempt to purchase 'item_recipe_ultimate_orb_two' failed
Client (account 252239639) tried to execute invalid order (33). Purchase order specified an invalid or missing item.
даже не понимаю в чем ошибка. код вроде бы правильно написан.
Cannot create an entity because entity class is NULL -1
Attempt to purchase 'item_recipe_ultimate_orb_two' failed
Client (account 252239639) tried to execute invalid order (33). Purchase order specified an invalid or missing item.
даже не понимаю в чем ошибка. код вроде бы правильно написан.
//=================================================================================================================
// Recipe: Ultimate Orb 2
//=================================================================================================================
"item_recipe_ultimate_orb_two"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_recipe_ultimate_orb_two" // unique ID number for this item. Do not change this once established or it will invalidate collected stats.
"AbilityTextureName" "item_recipe"
"Model" "models/props_gameplay/recipe.mdl"
// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "500"
"ItemShopTags" ""
// Recipe
//-------------------------------------------------------------------------------------------------------------
"ItemRecipe" "1"
"ItemResult" "item_ultimate_orb_two"
"ItemRequirements"
{
"01" "item_ultimate_orb"
}
}
// Recipe: Ultimate Orb 2
//=================================================================================================================
"item_recipe_ultimate_orb_two"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_recipe_ultimate_orb_two" // unique ID number for this item. Do not change this once established or it will invalidate collected stats.
"AbilityTextureName" "item_recipe"
"Model" "models/props_gameplay/recipe.mdl"
// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "500"
"ItemShopTags" ""
// Recipe
//-------------------------------------------------------------------------------------------------------------
"ItemRecipe" "1"
"ItemResult" "item_ultimate_orb_two"
"ItemRequirements"
{
"01" "item_ultimate_orb"
}
}