AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   (Doubt) SCU Unlimited Money (https://forums.alliedmods.net/showthread.php?t=329305)

Ark_Procession 12-18-2020 00:48

(Doubt) SCU Unlimited Money
 
Hi i activated debug mode to scu_unlimited_money.amxx from Arkshine and i get this warning/error:

HTML Code:

L 12/18/2020 - 02:45:52: -------- Mapchange to de_dust2 --------
Navigation map loaded.
[AMXX] Loaded 4 admins from file
L 12/18/2020 - 02:45:52: [custom_scu_unlimited_money.amxx]
L 12/18/2020 - 02:45:52: [custom_scu_unlimited_money.amxx] SCU: Unlimited Money -- Applying memory patches...

L 12/18/2020 - 02:45:52: [custom_scu_unlimited_money.amxx]
L 12/18/2020 - 02:45:52: [custom_scu_unlimited_money.amxx]        AddAccount::CBasePlayer
L 12/18/2020 - 02:45:52: [custom_scu_unlimited_money.amxx]
L 12/18/2020 - 02:45:52: [custom_scu_unlimited_money.amxx]                [OK] - 1/2 (1/20) - patched at 0xa5b1556. // Check max value
L 12/18/2020 - 02:45:52: [custom_scu_unlimited_money.amxx]                [OK] - 2/2 (2/20) - patched at 0xa5b1562. // Set max value
L 12/18/2020 - 02:45:52: [custom_scu_unlimited_money.amxx]
L 12/18/2020 - 02:45:52: [custom_scu_unlimited_money.amxx]        JoiningThink::CBasePlayer
L 12/18/2020 - 02:45:52: [custom_scu_unlimited_money.amxx]
L 12/18/2020 - 02:45:52: [ORPHEU] Function "CBasePlayer::JoiningThink" not found
L 12/18/2020 - 02:45:52: [AMXX] Displaying debug trace (plugin "custom_scu_unlimited_money.amxx")
L 12/18/2020 - 02:45:52: [AMXX] Run time error 10: native error (native "OrpheuGetFunction")
L 12/18/2020 - 02:45:52: [AMXX]    [0] custom_scu_unlimited_money.sma::initFunction (line 168)

L 12/18/2020 - 02:45:52: [AMXX]    [1] custom_scu_unlimited_money.sma::handleMemoryPatches (line 73)
L 12/18/2020 - 02:45:52: [AMXX]    [2] custom_scu_unlimited_money.sma::plugin_init (line 42)


How could i fix this?

CrazY. 12-18-2020 09:38

Re: (Doubt) SCU Unlimited Money
 
You will have to update CBasePlayer::JoiningThink signature.
https://forums.alliedmods.net/showthread.php?t=147998

After a quick look through one of my amxmodx folders, I found the one you need. Today is your luck day I would say.

Copy and paste this in amxmodx\configs\orpheu\functions\CBasePlayer\ JoiningThink
Code:

{
    "name"      : "JoiningThink",
    "class"    : "CBasePlayer",
    "library"  : "mod",
    "identifiers":
    [
        {
            "os"    : "windows",
            "mod"  : "cstrike",
            "value" : [0x83,"*","*",0x53,0x55,0x56,0x8B,"*",0x33,0xDB,0x57,0x8B,"*","*","*","*","*",0x83,"*","*",0x0F]
        },
        {
            "os"    : "linux",
            "mod"  : "cstrike",
            "value" : "JoiningThink__11CBasePlayer"
        }
    ]
}


Ark_Procession 12-18-2020 12:06

Re: (Doubt) SCU Unlimited Money
 
i cannot thank you enough for this. now the unlimited money works setting it 0 to 99999999 . before this fix you provided me, money only went over 16000 but i couldn't set it to rcon mp_startmoney 0 / 20000, etc.

the only weird thing is now @Ocixcrom simple menu builder is throwing a run time error debug not enabled

and when i do i get this :


HTML Code:

L 12/18/2020 - 14:03:14: [AMXX] Displaying debug trace (plugin "custom_crx_simplemenu.amxx")
L 12/18/2020 - 14:03:14: [AMXX] Run time error 4: index out of bounds
L 12/18/2020 - 14:03:14: [AMXX]    [0] crx_simplemenu.sma::fileRead (line 144)
L 12/18/2020 - 14:03:14: [AMXX]    [1] crx_simplemenu.sma::plugin_precache (line 81)


OciXCrom 12-18-2020 16:27

Re: (Doubt) SCU Unlimited Money
 
Quote:

custom_crx_simplemenu.amxx
What did you change in my plugin? Show your code.

Ark_Procession 12-18-2020 17:14

Re: (Doubt) SCU Unlimited Money
 
Quote:

Originally Posted by OciXCrom (Post 2729243)
What did you change in my plugin? Show your code.

already answered in your plugin page.

but for the record:

the name is just organizational, like the other 59 plugins i have.

CrazY. 12-18-2020 18:06

Re: (Doubt) SCU Unlimited Money
 
well, it's a problem in the plugin then. The thing I gave you was nothing more than a signature.

Btw, if you're not going to allow more than 16000 money, there's no point in using that plugin

Ark_Procession 12-18-2020 18:08

Re: (Doubt) SCU Unlimited Money
 
thanks! it works perfectly!!


All times are GMT -4. The time now is 14:08.

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