AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Orpheu] Problem with signature [again] (https://forums.alliedmods.net/showthread.php?t=147198)

Owner123 01-06-2011 11:14

[Orpheu] Problem with signature [again]
 
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?

joaquimandrade 01-06-2011 11:32

Re: [Orpheu] Problem with signature [again]
 
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

Owner123 01-06-2011 13:02

Re: [Orpheu] Problem with signature [again]
 
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;



joaquimandrade 01-06-2011 14:45

Re: [Orpheu] Problem with signature [again]
 
You have to put the file inside a folder named CBasePlayer

Owner123 01-06-2011 15:39

Re: [Orpheu] Problem with signature [again]
 
Code:

orpheu\functions\CBasePlayer\AddAccount
I have this but dont work.

Arkshine 01-06-2011 15:45

Re: [Orpheu] Problem with signature [again]
 
Paste the output of orpheu parsing at server start.

Owner123 01-06-2011 16:21

Re: [Orpheu] Problem with signature [again]
 
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.


Arkshine 01-06-2011 16:25

Re: [Orpheu] Problem with signature [again]
 
And your actual sig ?

Owner123 01-06-2011 16:37

Re: [Orpheu] Problem with signature [again]
 
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"
        }
    ]
}


Arkshine 01-06-2011 16:46

Re: [Orpheu] Problem with signature [again]
 
on_AddAccount on_AddAccou?t

...


All times are GMT -4. The time now is 02:12.

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