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

[Solved] Orpheu Struct error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 08-07-2011 , 08:26   [Solved] Orpheu Struct error
Reply With Quote #1

How is it possible that calling the following function...:
PHP Code:
OrpheuStruct:get_ppmove()
{        
    return 
OrpheuGetStructFromAddressOrpheuStructPlayerMove,OrpheuMemoryGet"ppmove" ) );

... can give me this error:
Quote:
[ORPHEU] Invalid memory structure "ppmove"
[AMXX] Run time error 10: native error (native "OrpheuMemoryGet")
Am I missing something from my Orpheu config?

Thanks.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.

Last edited by hornet; 08-07-2011 at 22:42.
hornet is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-07-2011 , 17:40   Re: Orpheu Struct error
Reply With Quote #2

No need for that function.
Hook PM_Move() and store the ppmove from that forward in a global variable.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 08-07-2011 , 21:21   Re: Orpheu Struct error
Reply With Quote #3

Oh good as! It works now thanks!

But just a question on that, would that use a bit more CPU because PM_Move is called so often?
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-07-2011 , 21:24   Re: Orpheu Struct error
Reply With Quote #4

What are you using ppmove for?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 08-07-2011 , 22:28   Re: Orpheu Struct error
Reply With Quote #5

Well at the moment I just wanted to get it working so I could play around with any of the PM_ functions and learn a bit more about Orpheu and see what I can come up with.
But in this case I'm using it to get the struct of a player for PM_Jump().
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet 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 04:35.


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