Raised This Month: $ Target: $400
 0% 

OciXCrom's Custom Shop + API


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
romeo72
Member
Join Date: Oct 2021
Old 11-23-2021 , 12:08   Re: OciXCrom's Custom Shop + API
Reply With Quote #1

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 #2

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 #3

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 #4

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 #5

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 #6

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
romeo72
Member
Join Date: Oct 2021
Old 11-25-2021 , 23:18   Re: OciXCrom's Custom Shop + API
Reply With Quote #7

hello OciXCrom.

perfect ... that's exactly what it was. I deleted the entry in the plugins-cshop.ini. now it works!
many, many thanks for that!

best regards
romeo72 is offline
Fgh
New Member
Join Date: Oct 2021
Old 03-03-2022 , 12:49   Re: OciXCrom's Custom Shop + API
Reply With Quote #8

How can I set a points limit ?
Fgh is offline
brN17
Junior Member
Join Date: Mar 2022
Old 03-14-2022 , 17:42   Re: OciXCrom's Custom Shop + API
Reply With Quote #9

Hello there.
So, I been trying to learn It but since I'm a beginner I'm getting way too confused, I'd aprecciate some scripting help.
I already added a point system plugin to my server and did set in the "cshop_settings.inc" parameters to use points instead of money's game itself.
My question is, how can I add an AMX command to be "buyable"? I mean like, I have SuperHero mod on my server Installed as well, I want to make a shop using "amx_shaddxp" command to allow players to buy a certain amount of XP, this way they can even save points to buy more XP later.
I've seen something like this in some SH server years ago, It was called "/tickets" but I didn't find it anywhere so I decided to make It myself, thx for those who can help me.
brN17 is offline
Old 03-14-2022, 18:05
Bill H. Gaytes
This message has been deleted by asherkin. Reason: Spam.
Reply



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 06:58.


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