AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   MyJailShop repair to work with frozdark shop (https://forums.alliedmods.net/showthread.php?t=323915)

j1gg 05-01-2020 15:50

MyJailShop repair to work with frozdark shop
 
Hello, can someone repair myjstore? Right now myjstore dont work with frozdark store (https://github.com/FD-Forks/Shop-Core) credits from last request and kills are not adding to store.

I have those errors:
L 05/01/2020 - 21:47:11: [SM] Blaming: shop/shop.smx
L 05/01/2020 - 21:47:11: [SM] Call stack trace:
L 05/01/2020 - 21:47:11: [SM] [0] ThrowNativeError
L 05/01/2020 - 21:47:11: [SM] [1] Line 83, addons/sourcemod/scripting/shop/player_manager.sp::PlayerManager_GetClientCre dits
L 05/01/2020 - 21:47:11: [SM] [3] Shop_GetClientCredits
L 05/01/2020 - 21:47:11: [SM] [4] Line 52, addons/sourcemod/scripting/myjailshop-frozdark-shop.sp::MyJailShop_OnGetCredits
L 05/01/2020 - 21:47:11: [SM] [6] Call_Finish
L 05/01/2020 - 21:47:11: [SM] [7] Line 3714, addons/sourcemod/scripting/myjailshop.sp::Forward_OnGetCredits
L 05/01/2020 - 21:47:11: [SM] [8] Line 3595, addons/sourcemod/scripting/myjailshop.sp::DB_WriteCredits
L 05/01/2020 - 21:47:11: [SM] [9] Line 1550, addons/sourcemod/scripting/myjailshop.sp::OnClientCookiesCached
L 05/01/2020 - 21:47:11: [SM] Exception reported: Client index 2 is not in game
L 05/01/2020 - 21:47:11: [SM] Blaming: shop/shop.smx
L 05/01/2020 - 21:47:11: [SM] Call stack trace:
L 05/01/2020 - 21:47:11: [SM] [0] ThrowNativeError
L 05/01/2020 - 21:47:11: [SM] [1] Line 83, addons/sourcemod/scripting/shop/player_manager.sp::PlayerManager_GetClientCre dits
L 05/01/2020 - 21:47:11: [SM] [3] Shop_GetClientCredits
L 05/01/2020 - 21:47:11: [SM] [4] Line 52, addons/sourcemod/scripting/myjailshop-frozdark-shop.sp::MyJailShop_OnGetCredits
L 05/01/2020 - 21:47:11: [SM] [6] Call_Finish
L 05/01/2020 - 21:47:11: [SM] [7] Line 3714, addons/sourcemod/scripting/myjailshop.sp::Forward_OnGetCredits
L 05/01/2020 - 21:47:11: [SM] [8] Line 1568, addons/sourcemod/scripting/myjailshop.sp::OnClientCookiesCached
L 05/01/2020 - 21:47:20: [SM] Exception reported: Invalid key value handle 0 (error 4)

here is myjs-frozdark integration plugin

/*
* MyJailShop - Shop by FrozDark Support Plugin.
* by: shanapu
* https://github.com/shanapu/MyJailShop
*
* Copyright (C) 2016-2017 Thomas Schmidt (shanapu)
*
* This file is part of the MyJailShop SourceMod Plugin.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, version 3.0, as published by the
* Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program. ifnot, see <http://www.gnu.org/licenses/>.
*/

/********************************************* *********************************
STARTUP
********************************************* *********************************/

// Includes
#include <sourcemod>
#include <shop>
#include <myjailshop>

// Compiler Options
#pragma semicolon 1
#pragma newdecls required

// Info
public Plugin myinfo =
{
name = "MyJailShop - Use credits from Shop by FrozDark",
author = "shanapu",
description = "Add Support for credits from Shop by FrozDark",
version = "1.0",
url = "https://github.com/shanapu/MyJailShop"
};

/********************************************* *********************************
FORWARDS LISTEN
********************************************* *********************************/

public int MyJailShop_OnGetCredits(int client)
{
int credits = Shop_GetClientCredits(client);

return credits;
}

public void MyJailShop_OnSetCredits(int client, int credits)
{
Shop_SetClientCredits(client, credits);
}

I can pay for this repair.

Pilo 05-02-2020 07:03

Re: MyJailShop repair to work with frozdark shop
 
Message me on discord : Pilo#8253


All times are GMT -4. The time now is 07:45.

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