Invalid memory access.
#7

Quote:
Originally Posted by iKarim
Посмотреть сообщение
Are you using any library that's using #emit? That could be the reason for the issues, but it could happen in many different scenarios. Also if you have any backtrace data, please post it too.
Of course YSI use that with also @emit. I don't have sufficiently knowledge to use #emid nor @emit. There is the backtrace data but it doesn't give any useful informations, unfortunaly. Plus, that run time error happens at some random moments. I mean, sometimes nothing happens and everything works, sometimes it crash.

PHP код:
[13:57:51] [debugRun time error 5"Invalid memory access"
[13:57:51] [debugAMX backtrace:
[
13:57:51] [debug#0 003180b4 in GivePlayerBulletProofVest (playerid=6, Float:armour=0.00000, vest_type=0, sender_id=5, sender_slotid=3) at ..(PATH)/inventory/bulletproof_vest/functions.inc:33
[13:57:51] [debug#1 00306300 in OnPlayerClickGiveButton (playerid=5) at ..(PATH)/textdraws.inc:480
[13:57:51] [debug#2 00300818 in ?? (playerid=5, Text:clickedid=19, ... <1073741821 arguments>) at ..(PATH)/textdraws.inc:130
[13:57:51] [debug#3 00038878 in public OnPlayerClickTextDraw (... <2 arguments>) at (PATH)pawno\include\YSI\YSI\..\YSI_Coding\..\YSI_Internal\y_cgen.inc:115
BulletProof_Vest[playerid][slotid][bvdArmor] = armour// LINE 33
BulletProof_Vest[playerid][slotid][bvdVestType] = vest_type
I added a debug message to see if there is any incorrect values. Nothing bad.
That's the last print before the Run Time Error occurs:
Код:
printf("GivePlayerBulletProofVest -> BPV given to %i // Stats: %f & %i | %i", playerid, armour, slotid, vest_type);
GivePlayerBulletProofVest -> BPV given to 6 // Stats: 0.000000 & 2 | 0
PHP код:
[13:11:36] [debugRun time error 5"Invalid memory access"
[13:11:36] [debugAMX backtrace:
[
13:11:36] [debug#0 0031870c in RemoveBulletProofVest (playerid=6, slotid=0) at (PATH)/bulletproof_vest/functions.inc:86
[13:11:36] [debug#1 002e5ef4 in RemovePlayerAccessory (playerid=6, accessoryid=98, slotid=0) at (PATH)/inventory/core.inc:448
[13:11:36] [debug#2 003188d4 in RemoveEveryBulletProofVest (playerid=6) at (PATH)/bulletproof_vest/functions.inc:100
[13:11:36] [debug#3 002e1a74 in public cmd_remove_vest (playerid=6, ... <1 argument>) at ..(PATH)/bulletproof_vest/core.inc:65
[13:11:36] [debug#4 native CallLocalFunction () from samp-server.exe
[13:11:36] [debug#5 0006afd0 in public FIXES_OnPlayerCommandText (playerid=6, cmdtext[]=@01afb76c "/remove_vest") at (PATH)\pawno\include\izcmd.inc:113
[13:11:36] [debug#6 native CallLocalFunction () from samp-server.exe
[13:11:36] [debug#7 0003176c in public OnPlayerCommandText (playerid=6, cmdtext[]=@01afb738 "/remove_vest") at (PATH)\include\fixes.inc:1966
new partial_reset[E_BULLETPROOF_VEST_DATA];
BulletProof_Vest[playerid][slotid] = partial_reset// LINE 86 
Thanks for you help c:
Reply


Messages In This Thread
Invalid memory access. - by Dayrion - 06.05.2018, 17:37
Re: Invalid memory access. - by Dayrion - 07.05.2018, 12:41
Re: Invalid memory access. - by jasperschellekens - 07.05.2018, 12:43
Re: Invalid memory access. - by Dayrion - 07.05.2018, 13:22
Re: Invalid memory access. - by Dayrion - 08.05.2018, 11:16
Re: Invalid memory access. - by iKarim - 08.05.2018, 11:42
Re: Invalid memory access. - by Dayrion - 08.05.2018, 12:02
Re: Invalid memory access. - by Dayrion - 09.05.2018, 10:44
Re: Invalid memory access. - by Dayrion - 10.05.2018, 08:53

Forum Jump:


Users browsing this thread: 1 Guest(s)