|
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
|

02-11-2022
, 11:40
Re: [Orpheu] Retrieving player's IP address
|
#2
|
Try this signature for NET_AdrToString:
Code:
{
"name" : "NET_AdrToString",
"library" : "engine",
"arguments" :
[
{
"type" : "pointer"
}
],
"return" :
{
"type" : "char *"
},
"identifiers" :
[
{
"os" : "windows",
"value" :[0x55,0x8B,"*",0x6A,"*",0x6A,"*",0x68,"*","*","*","*",0xE8,"*","*","*","*",0x8B,"*","*",0x83,"*","*",0x83,"*","*",0x75,"*",0x68,"*","*","*","*",0x6A,"*",0x68,"*","*","*","*",0xE8,"*","*","*","*",0x83,"*","*",0xB8,"*","*","*","*",0x5D,0xC3,0x83,"*","*",0x75,"*",0x8B,"*","*",0x50,0xE8,"*","*","*","*",0x8B,"*","*",0x8B,"*","*",0x25]
},
{
"os" : "linux",
"value" : "NET_AdrToString"
}
]
}
Note that the signature file is not entirely correct, but it appears to be working. The issue is with the first argument: const netadr_t& a. Orpheu doesn't have support for netadr_t structure as far as I know, so you don't have a corresponding type. I declared it as pointer and it appears to be fine, but please know this isn't a pointer(if it was, things would be so much easier) so do not try to read data from it.
__________________
|
|