hello i have error on sudo mod menu i added some source cde to script.cpp (gui) sudomod

script is :
template <typename R, typename T1>
static inline R invoke(UINT64 hash, T1 P1)
{
nativeInit(hash);

nativePush(P1);

return *reinterpret_cast<R *>(nativeCall()); // here is the problem illegal indirection nativecaller.h line 29 c2100
}