threatsociety
Кибердура ^_^
- Сообщения
- 125
- Реакции
- 12
ссылку можно?Уже есть
ссылку можно?Уже есть
Вроде как рико писал в приват.ссылку можно?
Как получить Имя предмета по item_id ?
/**
* Gets the item unique name by its id
* -
* @param item_id Item id to get for
* @param buffer Buffer to store the unique name
* @param maxlength Max length of the buffer
* -
* @return Number of bytes written
*/
native Shop_GetItemById(ItemId:item_id, String:buffer[], maxlength);
он уже давно там GitHub - R1KO/Shop-CoreP.S. @R1KO, выложи shop core на GitHub пожалуйста, там удобнее смотреть код.
Не увидел GitHub.PHP:/** * Gets the item unique name by its id * - * @param item_id Item id to get for * @param buffer Buffer to store the unique name * @param maxlength Max length of the buffer * - * @return Number of bytes written */ native Shop_GetItemById(ItemId:item_id, String:buffer[], maxlength);
он уже давно там GitHub - R1KO/Shop-Core
"kleiner"
{
"name" "Очки Клейнера"
"model" "models/gmod_tower/klienerglasses.mdl"
"attachment" "facemask"
}
/**
* Получает имя предмета
* -
* @param item_id Item id to get for
* @param buffer Buffer to store the unique name
* @param maxlength Max length of the buffer
* -
* @return Number of bytes written
*/
native Shop_GetItemNameById(ItemId:item_id, String:buffer[], maxlength);
//// shop.sp
//
// shop/db.sp(523) : warning 237: coercing functions to and from primitives is unsupported and will be removed in the future
// shop/db.sp(540) : warning 237: coercing functions to and from primitives is unsupported and will be removed in the future
// shop/db.sp(566) : warning 237: coercing functions to and from primitives is unsupported and will be removed in the future
// shop/item_manager.sp(212) : error 154: cannot assign INVALID_FUNCTION to a non-function type
// shop/item_manager.sp(438) : error 154: cannot assign INVALID_FUNCTION to a non-function type
// shop/item_manager.sp(450) : error 154: cannot assign INVALID_FUNCTION to a non-function type
// shop/item_manager.sp(466) : error 154: cannot assign INVALID_FUNCTION to a non-function type
// shop/item_manager.sp(494) : warning 237: coercing functions to and from primitives is unsupported and will be removed in the future
// shop/item_manager.sp(499) : error 173: 'try' is a newly reserved keyword that may be used in the future; use a different name as an identifier
// shop/item_manager.sp(501) : error 173: 'try' is a newly reserved keyword that may be used in the future; use a different name as an identifier
// shop/item_manager.sp(523) : error 173: 'try' is a newly reserved keyword that may be used in the future; use a different name as an identifier
// shop/item_manager.sp(535) : warning 237: coercing functions to and from primitives is unsupported and will be removed in the future
// shop/item_manager.sp(1095) : warning 234: symbol "IsValidHandle" is marked as deprecated: Do not use this function.
//
//
// shop/item_manager.sp(1137) : error 154: cannot assign INVALID_FUNCTION to a non-function type
// shop/item_manager.sp(1137) : warning 237: coercing functions to and from primitives is unsupported and will be removed in the future
// shop/item_manager.sp(1213) : error 154: cannot assign INVALID_FUNCTION to a non-function type
// shop/item_manager.sp(1218) : error 154: cannot assign INVALID_FUNCTION to a non-function type
// shop/item_manager.sp(1230) : error 154: cannot assign INVALID_FUNCTION to a non-function type
// shop/item_manager.sp(1235) : error 154: cannot assign INVALID_FUNCTION to a non-function type
// shop/item_manager.sp(1288) : error 154: cannot assign INVALID_FUNCTION to a non-function type
// shop/item_manager.sp(1293) : error 154: cannot assign INVALID_FUNCTION to a non-function type
// shop/item_manager.sp(1324) : error 154: cannot assign INVALID_FUNCTION to a non-function type
// shop/item_manager.sp(1324) : warning 237: coercing functions to and from primitives is unsupported and will be removed in the future
// shop/item_manager.sp(1353) : error 154: cannot assign INVALID_FUNCTION to a non-function type
// shop/item_manager.sp(1353) : warning 237: coercing functions to and from primitives is unsupported and will be removed in the future
// shop/item_manager.sp(1354) : error 154: cannot assign INVALID_FUNCTION to a non-function type
// shop/item_manager.sp(1354) : warning 237: coercing functions to and from primitives is unsupported and will be removed in the future
// shop/item_manager.sp(1400) : error 154: cannot assign INVALID_FUNCTION to a non-function type
// shop/item_manager.sp(1400) : warning 237: coercing functions to and from primitives is unsupported and will be removed in the future
// shop/item_manager.sp(1481) : error 154: cannot assign INVALID_FUNCTION to a non-function type
// shop/item_manager.sp(1481) : warning 237: coercing functions to and from primitives is unsupported and will be removed in the future
// shop/item_manager.sp(1682) : error 154: cannot assign INVALID_FUNCTION to a non-function type
// shop/item_manager.sp(1682) : warning 237: coercing functions to and from primitives is unsupported and will be removed in the future
// shop/item_manager.sp(1683) : error 154: cannot assign INVALID_FUNCTION to a non-function type
// shop/item_manager.sp(1683) : warning 237: coercing functions to and from primitives is unsupported and will be removed in the future
// shop/item_manager.sp(1792) : error 154: cannot assign INVALID_FUNCTION to a non-function type
// shop/item_manager.sp(1792) : warning 237: coercing functions to and from primitives is unsupported and will be removed in the future
// shop/item_manager.sp(1857) : error 154: cannot assign INVALID_FUNCTION to a non-function type
// shop/item_manager.sp(1872) : error 154: cannot assign INVALID_FUNCTION to a non-function type
// shop/item_manager.sp(1872) : warning 237: coercing functions to and from primitives is unsupported and will be removed in the future
// shop/item_manager.sp(1907) : error 154: cannot assign INVALID_FUNCTION to a non-function type
// shop/item_manager.sp(1907) : warning 237: coercing functions to and from primitives is unsupported and will be removed in the future
// shop/item_manager.sp(1942) : error 154: cannot assign INVALID_FUNCTION to a non-function type
//
// Compilation aborted.
// 26 Errors.
//
// Compilation Time: 0,58 sec
// ----------------------------------------
L 11/28/2016 - 16:25:54: [SM] Exception reported: Plugin handle 550055 is invalid (error 1)
L 11/28/2016 - 16:25:54: [SM] Blaming: shop/shop.smx
L 11/28/2016 - 16:25:54: [SM] Call stack trace:
L 11/28/2016 - 16:25:54: [SM] [0] Call_StartFunction
L 11/28/2016 - 16:25:54: [SM] [1] Line 210, shop/functions.sp::Functions_ShowMenu
L 11/28/2016 - 16:25:54: [SM] [2] Line 501, F:\cloud\git\addons\sourcemod\scripting\shop.sp::MainMenu_Handler
Хочешь - переписывай. Лично я не вижу в этом смысла.Может стоит переписать плагин под новый синтаксис?
Потому что загружаешь/выгружаешь/перезагружаешь модули добавляющие пункт в ФункцииНе всегда работает меню "Функции", и как я понял это сопровождается следующими ошибками:
Нет, я ничего с модулями не делал.Потому что загружаешь/выгружаешь/перезагружаешь модули добавляющие пункт в Функции
Math CreditsПомню был модуль для шопа, примеры в чате писались, и их нужно было решать, а за это давали кредиты. Так вот, хотел бы я поставить его на сервер, но его нету, может ли кто нибуть скинуть ссылочку?
Где настроить, чтобы плагин выдавал кредиты игроку за киллы и так далее, а то не выдает нихера :flood: