Raised This Month: $ Target: $400
 0% 

[Orpheu] Memory


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 01-06-2014 , 22:05   Re: [Orpheu] Memory
Reply With Quote #1

I just do the same thing like what infinite round does, but m_fFreezePeriod doesn't work, other seems work fine.

Here is my code:
PHP Code:
new g_pGameRules;

public 
plugin_precache()
{
    
OrpheuRegisterHook(OrpheuGetFunction("InstallGameRules"), "OnInstallGameRules"OrpheuHookPost);
}

public 
OnInstallGameRules()
{
    
g_pGameRules OrpheuGetReturn();
}

public 
plugin_init()
{
    
register_concmd("test""CmdTest");
}

public 
CmdTest()
{
    new 
m_iNumCT OrpheuMemoryGetAtAddress(g_pGameRules"m_iNumCT");
    
server_print("m_iNumCT is %i"m_iNumCT);
    
    new 
m_fFreezePeriod OrpheuMemoryGetAtAddress(g_pGameRules"m_fFreezePeriod");
    
server_print("m_fFreezePeriod is %i"m_fFreezePeriod);

I got this message from the console:
Quote:
] test
m_iNumCT is 1
L 01/07/2014 - 11:00:25: [ORPHEU] Invalid memory structure "m_fFreezePeriod"
Now I took a look again CSSDK, I think maybe I know what the problem was..

In InstallGameRules returns CHalfLifeMultiplay address, but m_bFreezePeriod isn't an member in CHalfLifeMultiplay but CGameRules?

So I need to find the address with CGameRules?

Or I still misunderstood something?
__________________
youtube:
@holla16
11922911 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-07-2014 , 00:55   Re: [Orpheu] Memory
Reply With Quote #2

Dunno, have you removed the file that is coming with infinite round ? (i think there are not all offsets in it)

And is there a file named 'BOOL' in 'cstrike\addons\amxmodx\configs\orpheu\types\ long\aliases\' ?

with content :

Code:
[
	"BOOL"
]
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 01-07-2014 at 00:57.
ConnorMcLeod is offline
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 10:05.


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