Raised This Month: $51 Target: $400
 12% 

Module: Orpheu (v2.6.3)


Post New Thread Reply   
 
Thread Tools Display Modes
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 05-05-2010 , 21:32   Re: Module: Orpheu2.3a (Fixed for windows server editions)
Reply With Quote #431

I always use text menu to buy. I will try again to change costs later and tell the results.
__________________
Voi is offline
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 05-07-2010 , 16:39   Re: Module: Orpheu2.3a (Fixed for windows server editions)
Reply With Quote #432

It doesn't work. Plugin works properly except setting the cost. Im running hlds on windows with newest amxx binaries.
__________________
Voi is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-07-2010 , 18:12   Re: Module: Orpheu2.3a (Fixed for windows server editions)
Reply With Quote #433

It seems I have not tested deeply last time.
Just some typos.

replace the old weaponIndex[] array by :

Code:
new const weaponIndex[] = { 0, 1, 0, 17, 3, 5, 7, 8, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 21, 22, 23, 24, 26, 27, 28, 30 };
and few lines below PatchMe( weaponIndex[ i ], ... by :

Code:
PatchMe( i, ...
__________________
Arkshine is offline
-B1ng0-
Member
Join Date: Nov 2009
Old 05-08-2010 , 02:57   Re: Module: Orpheu2.3a (Fixed for windows server editions)
Reply With Quote #434

I can't understand how to use Function ServerDezactivate

can any help me with an exemple please
-B1ng0- is offline
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 05-08-2010 , 08:31   Re: Module: Orpheu2.3a (Fixed for windows server editions)
Reply With Quote #435

@Arkshine
Quote:
PatchMe( i , weaponCost, get_pcvar_num( register_cvar( cvarName, "" ) ) );
Like this ?

It still doesn't work.
__________________
Voi is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-08-2010 , 08:37   Re: Module: Orpheu2.3a (Fixed for windows server editions)
Reply With Quote #436

You should have something :

Code:
    public plugin_init ()     {         register_plugin( "Weapon Cost Changer", "1.0.1", "Arkshine" );         register_concmd( "weapcost", "ConsoleCommand_ShowWeaponStruct", ADMIN_RCON );         new const weaponIndex[] = { 0, 1, 0, 17, 3, 5, 7, 8, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 21, 22, 23, 24, 26, 27, 28, 30 };         new cvarPrefix[] = "cost_";         new weaponName[ 24 ];         new cvarName[ sizeof weaponName + sizeof cvarPrefix ];         for ( new i = 0; i < sizeof weaponIndex; i++)         {             if ( weaponIndex[ i ] && get_weaponname( weaponIndex[ i ], weaponName, charsmax( weaponName ) ) )             {                 formatex( cvarName, charsmax( cvarName ), "%s%s", cvarPrefix, weaponName[ 7 ] );                 PatchMe( i, weaponCost, get_pcvar_num( register_cvar( cvarName, "" ) ) );             }         }     }

I've tested myself and it works fine now.
__________________
Arkshine is offline
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 05-08-2010 , 12:22   Re: Module: Orpheu2.3a (Fixed for windows server editions)
Reply With Quote #437

Could you post the whole working plugin?
Cause it still doesn't work for me.

I change cvar values, restart server(by restart command) and the weapon costs don't change. It shows changed values in weapcost.
__________________
Voi is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-08-2010 , 13:10   Re: Module: Orpheu2.3a (Fixed for windows server editions)
Reply With Quote #438

I've just changed what I've said you above, make sure you did the changes right, and use the new compiled plugin.
__________________
Arkshine is offline
Lt.RAT
Member
Join Date: Sep 2008
Location: Russia Yekaterinburg
Old 05-09-2010 , 11:36   Re: Module: Orpheu2.3a (Fixed for windows server editions)
Reply With Quote #439

Whats wrong here:

Code:
{
	"name" : "PM_Ladder",
	"library" : "mod",
	"return" :
	[
		"type" : "physent_s *"
	],
	"identifiers" :
	[
		{
			"os" : "windows",
			"mod" : "cstrike",
			"value" : [0x8B,0x0D,"*","*","*","*",0x83,0xEC,0x0C,0x8B,0x81,0x50,0x0F,0x02,0x00,0x53,0x55,0x33,0xDB,0x56,0x57,0x85,0xC0,0x0F,0x8E,0x94,0x00]
		},
		{
			"os" : "linux",
			"mod" : "cstrike",
			"value" : "PM_Ladder"
		}
	]
}
unhandled exception in module, when parsing "type", as i understand.
Lt.RAT is offline
Send a message via ICQ to Lt.RAT
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 05-09-2010 , 11:42   Re: Module: Orpheu2.3a (Fixed for windows server editions)
Reply With Quote #440

Quote:
Originally Posted by Lt.RAT View Post
Whats wrong here:

Code:
{
    "name" : "PM_Ladder",
    "library" : "mod",
    "return" :
    [
        "type" : "physent_s *"
    ],
    "identifiers" :
    [
        {
            "os" : "windows",
            "mod" : "cstrike",
            "value" : [0x8B,0x0D,"*","*","*","*",0x83,0xEC,0x0C,0x8B,0x81,0x50,0x0F,0x02,0x00,0x53,0x55,0x33,0xDB,0x56,0x57,0x85,0xC0,0x0F,0x8E,0x94,0x00]
        },
        {
            "os" : "linux",
            "mod" : "cstrike",
            "value" : "PM_Ladder"
        }
    ]
}
unhandled exception in module, when parsing "type", as i understand.

Should be:

Code:
    "return" :
    {
        "type" : "physent_s *"
    },
"[" is for arrays
__________________
joaquimandrade is offline
Old 05-10-2010, 10:24
kielor
This message has been deleted by kielor.
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 20:05.


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