View Single Post
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 02-06-2010 , 00:09   Re: Module: Orpheu2.1 (Change max money and weapon slots in the end of the thread :D
Reply With Quote #105

Quote:
Originally Posted by fysiks View Post
Code:
L 02/05/2010 - 22:39:22: [ORPHEU] Function "CBasePlayerWeapon::ThinkZoomIn" not found
\functions\CBasePlayerWeapon\ThinkZoomIn
Code:
{
    "name" : "ThinkZoomIn",
    "class" : "CBasePlayerWeapon",
    "library" : "mod",
    "arguments" :
    [
        {
            "type" : "CBasePlayerWeapon *"
        }
    ],
    "identifiers":
    [
        {
            "os" : "windows",
            "value" : "i don't know"
        },
        {
            "os" : "linux",
            "value" : "ThinkZoomIn__17CBasePlayerWeapon"
        }
    ]
}
I'm a bit confused . I don't really know what's going on lol.

EDIT: I see CBasePlayerWeapon is not in the list of available arguments like it was in the previous version Hop on that Quim!
CBasePlayerWeapon is defined at "configs\orpheu\types\CBaseEntity\aliases\CBa sePlayerWeapon"

look, when the server inits it outputs a log. The reason of not having found the function is there. You have that module shrikebot enabled? By the way I have to install dod on linux and solve that compatibility issue.

The reason for this specific problem, looking at your file should be that you don't have a mod entry in the identifier:


PHP Code:
  {
            
"os" "linux",
            
"mod" "dod",
            
"value" "ThinkZoomIn__17CBasePlayerWeapon"
        

Also, remove the identifier for windows because if you are not using it you don't need it and you are making the file uglier

Also note that now, if the function belongs to a class, the class is skipped from the arguments. So, since (if I remember correctly) the function is CBasePlayerWeapon::ThinkZoomIn() the file should be:


Code:
{
    "name" : "ThinkZoomIn",
    "class" : "CBasePlayerWeapon",
    "library" : "mod",
    "identifiers":
    [
        {
            "os" : "linux",
            "mod" : "dod",
            "value" : "ThinkZoomIn__17CBasePlayerWeapon"
        }
    ]
}
Edit:

About windows, I will try to find the signature for it for you tomorrow.
__________________
joaquimandrade is offline