04.05.2015, 11:21
Happens to me as well:

And I had this strange crash when using strcpy in OnServerMessage:
My code:

And I had this strange crash when using strcpy in OnServerMessage:
Код:
[04.05.2015 14:15:05] [debug] Server crashed while executing imperial.amx [04.05.2015 14:15:05] [debug] AMX backtrace: [04.05.2015 14:15:05] [debug] #0 native strcat () from samp-server.exe [04.05.2015 14:15:05] [debug] #1 001bd980 in public OnServerMessage () from imperial.amx [04.05.2015 14:15:05] [debug] #2 0003d6c0 in public zcmd_OnGameModeInit () from imperial.amx [04.05.2015 14:15:05] [debug] #3 native CallLocalFunction () from samp-server.exe [04.05.2015 14:15:05] [debug] #4 001befd0 in public SSCANF_OnGameModeInit () from imperial.amx [04.05.2015 14:15:05] [debug] #5 00035c34 in public ppb_OnGameModeInit () from imperial.amx [04.05.2015 14:15:05] [debug] #6 00034ccc in public OPVD_OnGameModeInit () from imperial.amx [04.05.2015 14:15:05] [debug] #7 native CallLocalFunction () from samp-server.exe [04.05.2015 14:15:05] [debug] #8 0002ee60 in public Fade_OnGameModeInit () from imperial.amx [04.05.2015 14:15:05] [debug] #9 native CallLocalFunction () from samp-server.exe [04.05.2015 14:15:05] [debug] #10 000230dc in public Audio_OnGameModeInit () from imperial.amx [04.05.2015 14:15:05] [debug] #11 native CallLocalFunction () from samp-server.exe [04.05.2015 14:15:05] [debug] #12 001c1ad8 in public Iter_OnGameModeInit () from imperial.amx [04.05.2015 14:15:05] [debug] #13 native CallLocalFunction () from samp-server.exe [04.05.2015 14:15:05] [debug] #14 001c22d0 in public ScriptInit_OnGameModeInit () from imperial.amx [04.05.2015 14:15:05] [debug] #15 0000082c in public OnGameModeInit () from imperial.amx [04.05.2015 14:15:05] [debug] Native backtrace: [04.05.2015 14:15:05] [debug] #0 004063ee in ?? () from samp-server.exe [04.05.2015 14:15:05] [debug] #1 62f962ca in ?? () from plugins\crashdetect.DLL [04.05.2015 14:15:05] [debug] #2 62f98b28 in ?? () from plugins\crashdetect.DLL [04.05.2015 14:15:05] [debug] #3 62f909c7 in ?? () from plugins\crashdetect.DLL [04.05.2015 14:15:05] [debug] #4 62f9631a in ?? () from plugins\crashdetect.DLL [04.05.2015 14:15:05] [debug] #5 634351a7 in ?? () from plugins\streamer.DLL [04.05.2015 14:15:05] [debug] #6 026b27f0 in ?? () from plugins\YSF.DLL [04.05.2015 14:15:05] [debug] #7 026b6b81 in ?? () from plugins\YSF.DLL [04.05.2015 14:15:05] [debug] #8 026bbf7e in ?? () from plugins\YSF.DLL [04.05.2015 14:15:05] [debug] #9 62b417bc in ?? () from plugins\audio.DLL
pawn Код:
#define strcpy(%0,%1) strcat((%0[0] = EOS, %0), %1)
public OnServerMessage(const msg[])
{
new string[128];
//format(string, sizeof(string), "%s", msg);
strcpy(string, msg);
if (!strcmp(string, "BAD RCON ATTEMPT BY: ", false, 21))
{
strdel(string, 0, 21);
RconFail(string);
}
return 1;
}