06.05.2018, 17:37
Hi. Do you know what "Run time error 5: "Invalid memory access"" can be due? I'm getting this error randomly. A reconnection from the player seems to do the job until the next occurence.
The concerned code is some data manipulation like:
Nothing impressive.
The backtrace returned by crashdetect prove it doesn't use that much functions (3 max) until the error.
It happened recently on the same code but out of this function. I made those changements and it seems don't generate anymore run time error for this part.
The concerned code is some data manipulation like:
PHP код:
BulletProof_Vest[playerid][slotid][bvdArmor] = armour;
BulletProof_Vest[playerid][slotid][bvdVestType] = vest_type;
The backtrace returned by crashdetect prove it doesn't use that much functions (3 max) until the error.
It happened recently on the same code but out of this function. I made those changements and it seems don't generate anymore run time error for this part.
PHP код:
// BulletProof_Vest[receiverid][new_slotid][bvdArmor] = BulletProof_Vest[playerid][slotselected][bvdArmor];
// BulletProof_Vest[receiverid][new_slotid][bvdVestType] = BulletProof_Vest[playerid][slotselected][bvdVestType];
BulletProof_Vest[receiverid][new_slotid] = BulletProof_Vest[playerid][slotselected];