Raised This Month: $32 Target: $400
 8% 

OciXCrom's Custom Shop + API


Post New Thread Reply   
 
Thread Tools Display Modes
cgirerd
Junior Member
Join Date: Jul 2021
Old 08-15-2021 , 20:39   Re: OciXCrom's Custom Shop + API
Reply With Quote #301

Hi OciXCrom,
Thank you for the awesome plugin! I have a question: I would like shop items to not be lost during player transfers with a balancer. I tried to make players change team with silent_kill without success or via ExecuteHamB(Ham_CS_RoundRespawn, Player), which does not kill the player, but shopped items are still lost. Any idea on how to do that, either by keeping the items or restoring them?
Have a nice day
cgirerd is offline
cgirerd
Junior Member
Join Date: Jul 2021
Old 08-25-2021 , 05:48   Re: OciXCrom's Custom Shop + API
Reply With Quote #302

Fixed, I balance players on death now. But maybe this could be of interest to other people.
Thanks again for the nice plugin!
cgirerd is offline
romeo72
Member
Join Date: Oct 2021
Old 11-23-2021 , 05:42   Re: OciXCrom's Custom Shop + API
Reply With Quote #303

Hello, everyone,

I have a question and I hope you can help me.
I installed this plugin. the two .sma files compiled locally (on my pc).
Unfortunately the plugin does not start and I get the following error message in the console of the gameserver:

Code:
L 11/23/2021 - 11:20:57: Invalid array handle provided (0)
L 11/23/2021 - 11:20:57: [AMXX] Run time error 10 (plugin "custom_shop.amxx") (native "ArrayPushArray") - debug not enabled!
L 11/23/2021 - 11:20:57: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/23/2021 - 11:20:57: Unhandled dynamic native error
L 11/23/2021 - 11:20:57: [AMXX] Run time error 10 (plugin "cshop_items.amxx") (native "cshop_register_item") - debug not enabled!
L 11/23/2021 - 11:20:57: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/23/2021 - 11:20:58: Invalid cellvector handle provided (2:0:0)
L 11/23/2021 - 11:20:58: [AMXX] Run time error 10 (plugin "custom_shop.amxx") (native "ArrayGetArray") - debug not enabled!
L 11/23/2021 - 11:20:58: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/23/2021 - 11:20:58: Unhandled dynamic native error
L 11/23/2021 - 11:20:58: [AMXX] Run time error 10 (plugin "cshop_items.amxx") (native "cshop_get_int") - debug not enabled!
L 11/23/2021 - 11:20:58: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
I copied the rest of the files into the appropriate folder.
can you maybe help me further what i did wrong?

Thank you in advance !

Best regards
romeo72 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-23-2021 , 07:43   Re: OciXCrom's Custom Shop + API
Reply With Quote #304

custom_shop.amxx should be added BEFORE cshop_items.amxx in plugins.ini.
That's why I specifically left a plugins.ini file in the archive.
Read the installation instructions in the first post.

Last edited by OciXCrom; 11-23-2021 at 16:43.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
romeo72
Member
Join Date: Oct 2021
Old 11-23-2021 , 12:08   Re: OciXCrom's Custom Shop + API
Reply With Quote #305

hello OciXCrom,

Thanks for your quick reply !!
My installation:


I put it in the configs folder.
Code:
CustomShop.ini
plugins-cshop.ini

I put it in data / lang /
Code:
CustomShop.txt
I put it in the scripting / include /
Code:
cromchat.inc
cshop_settings.inc
customshop.inc
formatin.inc

I put it in the plugins folder
Code:
cshop_items.amxx
custom_shop.amxx

And I now have these lines in the plugin.ini:
Code:
; OciXCrom Custom Shop + API
cshop_items.amxx
custom_shop.amxx
Is it correct that way ?

If this process is correct, then I get this error message:
Code:
L 11/23/2021 - 20:05:44: Invalid trie handle provided (0)
L 11/23/2021 - 20:05:44: [AMXX] Run time error 10 (plugin "custom_shop.amxx") (native "TrieKeyExists") - debug not enabled!
L 11/23/2021 - 20:05:44: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/23/2021 - 20:05:44: -------- Mapchange to de_chateau --------
L 11/23/2021 - 20:05:44: Invalid array handle provided (0)
L 11/23/2021 - 20:05:44: [AMXX] Run time error 10 (plugin "custom_shop.amxx") (native "ArrayPushArray") - debug not enabled!
L 11/23/2021 - 20:05:44: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 11/23/2021 - 20:05:44: Unhandled dynamic native error
L 11/23/2021 - 20:05:44: [AMXX] Run time error 10 (plugin "cshop_items.amxx") (native "cshop_register_item") - debug not enabled!
L 11/23/2021 - 20:05:44: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
I only get the following message from the console command "cshop_edit":
custom shop editor and save changes.
As a player, I don't get a shop where I can buy something, for example.

maybe i don't understand the translation correctly either. it would be nice if you could help me there again.

best regards

Last edited by romeo72; 11-23-2021 at 14:35.
romeo72 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-23-2021 , 16:43   Re: OciXCrom's Custom Shop + API
Reply With Quote #306

Quote:
cshop_items.amxx should be added BEFORE custom_shop.amxx in plugins.ini.
Oops, I wrote this backwards. It's custom_shop.amxx that should go before cshop_items.amxx, not the other way around.

Simply switch their places in plugins.ini.

Quote:
custom_shop.amxx
cshop_items.amxx
The shop needs to exist before adding any items into it.

Last edited by OciXCrom; 11-23-2021 at 16:44.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
romeo72
Member
Join Date: Oct 2021
Old 11-23-2021 , 23:05   Re: OciXCrom's Custom Shop + API
Reply With Quote #307

hello OciXCrom,

now it works! thank you very much for the help!
I still have one question, however. shouldn't the shop appear automatically when you connect to the server? or at the beginning of a round?
or do you have to bind a button with / shop? Unfortunately, I have not yet understood that.

otherwise it's a cool plugin and thanks for that!

best regards
romeo72 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-24-2021 , 07:39   Re: OciXCrom's Custom Shop + API
Reply With Quote #308

I never mentioned that it should appear automatically, nor I see a reason for it.
Everyone can bind a button to open it.

You can use a sub-plugin that forces the shop to open at the beginning of the round or whenever you want. I would personally find that annoying. If I want to buy something - I press a button and open it.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
romeo72
Member
Join Date: Oct 2021
Old 11-25-2021 , 12:01   Re: OciXCrom's Custom Shop + API
Reply With Quote #309

hello OciXCrom

my thought was that, as with CSDM, the shop appears after every kill. but I agree with you, it is better to tie a button!

I still have one question, however.
with me on the server from a certain time only dust 2. runs csdm there. the csdm activation runs via a plugins-de_dust2.ini with the content:
Quote:
crx_ranksystem.amxx
csdm_equip.amxx
csdm_main.amxx
csdm_misc.amxx
csdm_protection.amxx
csdm_spawn_preset.amxx
csdm_tickets.amxx
spawn_editor.amxx
now I want the shop to be activated via the plugins-de_dust2.ini.
so i added the shop entries as well:
Quote:
custom_shop.amxx
cshop_items.amxx
cshop_norecoil.amxx
crx_ranksystem.amxx
csdm_equip.amxx
csdm_main.amxx
csdm_misc.amxx
csdm_protection.amxx
csdm_spawn_preset.amxx
csdm_tickets.amxx
spawn_editor.amxx
unfortunately that doesn't work.
as soon as I go to the shop, only the purchase of the recoil appears.

do you have an idea how to get the plugins-de_dust2.ini to run?

thank you in advance!

best regards

Last edited by romeo72; 11-25-2021 at 13:27.
romeo72 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-25-2021 , 14:04   Re: OciXCrom's Custom Shop + API
Reply With Quote #310

There's nothing different about using a custom plugins.ini file. Just make sure you remove the plugins from other .ini files.

I'm pretty sure you have a plugins-cshop.ini file with cshop_items in it. Remove it.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode