SA-MP Forums Archive
Invalid memory access - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Invalid memory access (/showthread.php?tid=284011)



Invalid memory access - wouter0100 - 17.09.2011

Yo.

I was looking in my crashdetect file, and i saw lots of times this:
Quote:

gamemodes\RRP.amx: During execution of OnPlayerUpdate:
gamemodes\RRP.amx: Run time error 5: "Invalid memory access".
gamemodes\RRP.amx: During execution of OnPlayerStateChange:
gamemodes\RRP.amx: Run time error 5: "Invalid memory access".

Whats wrong?
I thing there is something wrong with my mysql? (Its not my RAM. 8gb ram ;O)

//edit:
It's isnt mysql_store_result, i have everywhere free'ed it.
Thanks.
Wouter


Re: Invalid memory access - BlackBank - 17.09.2011

Which version you are testing the server on?
If you have 0.3d RC1, then you can get it. Because not all the plugins are updated yet, to the new version.


Re: Invalid memory access - wouter0100 - 17.09.2011

Nope, 0.3c.


Re: Invalid memory access - Fat - 17.09.2011

Check OnPlayerStateChange callback.


Re: Invalid memory access - wouter0100 - 17.09.2011

pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    return 1;
}


public OnPlayerSpawn(playerid)
{
    return 1;
}