Raised This Month: $ Target: $400
 0% 

[Orpheu] Problem with signature [again]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Owner123
Member
Join Date: Jun 2010
Old 01-06-2011 , 11:14   [Orpheu] Problem with signature [again]
Reply With Quote #1

Hi.
I have problem with signature again

Its my sig:
Code:
{
    "name"      : "AddAccount",
    "class"     : "CBasePlayer",
    "library"   : "mod",
    "arguments" : 
    [
        {
            "type" : "int"
        },
        {
            "type" : "bool"
        }
    ],
    "identifiers" :
    [
        {
            "os"    : "windows",
            "mod"   : "cstrike",
            "value" : 0
        },
        {
            "os"    : "linux",
            "mod"   : "cstrike",
            "value" : "AddAccount"
        }
    ]
}
I need this sig for linux, so i put 0 in windows's value.
But in server console i have this:
Quote:
Parsing file "AddAccount" started
Argument type "int" validated
Argument type "bool" validated
Searching for name "AddAccount"... NOT FOUND
Parsing file "AddAccount" ended
Anyone know why i get this?
__________________
Sorry for my bad english !
Owner123 is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 01-06-2011 , 11:32   Re: [Orpheu] Problem with signature [again]
Reply With Quote #2

You can get it's symbolic name (it's mangled name) here:

http://forums.alliedmods.net/showpos...77&postcount=2

In
Code:
[Linux\]\[Counter-Strike\]\ Functions\ Symbolic\ Name.txt
Code:
AddAccount__11CBasePlayerib
__________________
joaquimandrade is offline
Owner123
Member
Join Date: Jun 2010
Old 01-06-2011 , 13:02   Re: [Orpheu] Problem with signature [again]
Reply With Quote #3

Thanks, sig now work fine.

But my plugin dont work :S
Error log:
Code:
L 01/06/2011 - 18:23:42: [ORPHEU] Function "CBasePlayer::AddAccount" not found
Code:
PHP Code:
public plugin_init()
{
    
register_plugin("Test""1.0.0""Owner")
    
    
OrpheuRegisterHook(OrpheuGetFunction("AddAccount""CBasePlayer"), "on_AddAccount");
}


public 
OrpheuHookReturn:on_AddAccout(idamountbool:flash)
{
    
client_print(idprint_chat"Block %i %i"amount_:flash);
    return 
OrpheuSupercede;

__________________
Sorry for my bad english !
Owner123 is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 01-06-2011 , 14:45   Re: [Orpheu] Problem with signature [again]
Reply With Quote #4

You have to put the file inside a folder named CBasePlayer
__________________
joaquimandrade is offline
Owner123
Member
Join Date: Jun 2010
Old 01-06-2011 , 15:39   Re: [Orpheu] Problem with signature [again]
Reply With Quote #5

Code:
orpheu\functions\CBasePlayer\AddAccount
I have this but dont work.
__________________
Sorry for my bad english !
Owner123 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-06-2011 , 15:45   Re: [Orpheu] Problem with signature [again]
Reply With Quote #6

Paste the output of orpheu parsing at server start.
__________________
Arkshine is offline
Owner123
Member
Join Date: Jun 2010
Old 01-06-2011 , 16:21   Re: [Orpheu] Problem with signature [again]
Reply With Quote #7

Code:
Orpheu functions search started.

    Parsing functions started.
        Parsing file "CheckStartMoney" started
                Function is updated
        Parsing file "CheckStartMoney" ended
        Parsing folder "CBasePlayer" started
            Parsing file "JoiningThink" started
                Searching for name "JoiningThink"... NOT FOUND
            Parsing file "JoiningThink" ended
            Parsing file "AddAccount" started
                Function is updated
            Parsing file "AddAccount" ended
            Parsing file "Reset" started
                Searching for name "Reset"... NOT FOUND
            Parsing file "Reset" ended
        Parsing folder "CBasePlayer" ended
    Parsing functions ended.
__________________
Sorry for my bad english !
Owner123 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-06-2011 , 16:25   Re: [Orpheu] Problem with signature [again]
Reply With Quote #8

And your actual sig ?
__________________
Arkshine is offline
Owner123
Member
Join Date: Jun 2010
Old 01-06-2011 , 16:37   Re: [Orpheu] Problem with signature [again]
Reply With Quote #9

Code:
{
    "name"      : "AddAccount",
    "class"     : "CBasePlayer",
    "library"   : "mod",
    "arguments" : 
    [
        {
            "type" : "int"
        },
        {
            "type" : "bool"
        }
    ],
    "identifiers" :
    [
        {
            "os"    : "windows",
            "mod"   : "cstrike",
            "value" : 0
        },
        {
            "os"    : "linux",
            "mod"   : "cstrike",
            "value" : "AddAccount__11CBasePlayerib"
        }
    ]
}
__________________
Sorry for my bad english !
Owner123 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-06-2011 , 16:46   Re: [Orpheu] Problem with signature [again]
Reply With Quote #10

on_AddAccount on_AddAccou?t

...
__________________
Arkshine 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 02:12.


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