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

[Orpheu] On PM_Duck get ppmove address and crash


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 04-01-2017 , 12:13   [Orpheu] On PM_Duck get ppmove address and crash
Reply With Quote #1

The following code crash my server.
PHP Code:
public plugin_init()
{
    
OrpheuRegisterHook(OrpheuGetFunction("PM_Duck"), "OnPM_Duck");
}

public 
OnPM_Duck()
{
    new 
OrpheuStruct:ppmove get_ppmove();
    
    new 
Float:maxspeed Float:OrpheuGetStructMember(ppmove"maxspeed");
    
OrpheuSetStructMember(ppmove"maxspeed"maxspeed 0.5);
}

stock OrpheuStruct:get_ppmove()
{
    return 
OrpheuGetStructFromAddress(OrpheuStructPlayerMoveOrpheuMemoryGet("ppmove"));

Does anyone knows what is the problem?
I'm using latest stable HLDS and Orpheu

My orpheu signatures:
Attached Files
File Type: zip signatures.zip (896 Bytes, 27 views)
__________________
youtube:
@holla16

Last edited by 11922911; 04-01-2017 at 12:33.
11922911 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 20:37.


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