29.12.2018, 15:01
Hello,
My server crashes once every few hours/days, i've been using crashdetect to look for problems and found that during runtime somtimes memory adresses seem to be altered:
However, the integer used in the array could NEVER get higher then 3:
How could issues like this occur? I suppose only by memory hacking plugins?
Kind regards,
Jop
My server crashes once every few hours/days, i've been using crashdetect to look for problems and found that during runtime somtimes memory adresses seem to be altered:
Код:
[12:10:45] i: 5547156, j: 1234 [12:10:45] [debug] Run time error 4: "Array index out of bounds" [12:10:45] [debug] Attempted to read/write array element at index 5547156 in array of size 4 [12:10:45] [debug] AMX backtrace: [12:10:45] [debug] #0 000c5aac in FunctionNodesInZone (GangID=2) at D:\Games\GTA-SA\GTA San Andreas\SA-MP 0.3.7 R2 Server\gamemodes\FRBServer0.1.pwn:13599
Код:
#define FCNPC_WALKNODE_LIMIT 10000 #define FCNPC_ZONE_COUNT 4 for(new j = 0; j < FCNPC_WALKNODE_LIMIT; j++) { for(new i = 0; i < FCNPC_ZONE_COUNT; i++) { if(i > 3) printf("i: %d, j: %d", i, j);
Kind regards,
Jop