0121: Expected function's static address
function CStats__GetStatType<cdecl,>(statId: int): int // error: Expected function's static address, found >.Possible solutions:
function CStats__GetStatType<cdecl,0x558E30>(statId: int): int // static foreign functionfunction CStats__GetStatType<cdecl>(statId: int): intCStats__GetStatType method // define a pointer to function Destroy
...
method = 0x400000 // function is located at 0x400000
int value = method(0xDEADD0D0) // call function using the pointerPrevious0120: Expected calling convention typeNext0122: A non-static function can't be called by name
Last updated