20.02.2010, 11:45
I want to create a DLL that asks program for info and sends it to somewhere else. But when I call (static cell AMX_NATIVE_CALL) function, then it won't work anymore, because it cannot read or write protected memory. How to get rid of that?
Code:
char * Info; static cell AMX_NATIVE_CALL n_SendServerInfo( AMX* amx, cell* params ) { char *szInfo; amx_StrParam(amx, params[1], szInfo); Info = szInfo; return true; }