Invalid memory access
#1

Hi,
I'm running currently the crashdetect plugin and it found something but
i don't know how to fix this.

I hope someone can help me...


Код:
[15:15:25] Script[gamemodes/GM.amx]: In file 'C:\GM.pwn' at line 14940:
[15:15:25] Script[gamemodes/GM.amx]: Run time error 5: "Invalid memory access"
[15:15:25] Additional information:
[15:15:25]   No details available
[15:15:25] Stack trace (most recent call first):
[15:15:25]   Stack corrupted!
Line 14940:
Код:
dcmd(kill, 4, cmdtext);
The Command:
Код:
dcmd_kill(playerid, params[])
{
        #pragma unused params
	SetPlayerHealth(playerid, 0.0);
	SetPlayerVirtualWorld(playerid, 0);
	pInfo[playerid][Deaths]++;
	return 1;
}
Reply
#2

Does the server actually crash?

https://sampwiki.blast.hk/wiki/Debugging
Reply
#3

No, the Server actually doesn't crash.
Reply
#4

Delete the line and try again. See what comes out then. Also, delete the command too.
Reply
#5

Okay,
I have deleted the command '/kill' but now it says me the same error
at the next command below

Код:
//dcmd(kill, 4, cmdtext); 
dcmd(me, 2, cmdtext); <--- Invalid memory access is now here
I think the plugin shows the error always at the first command

Maybe that's the problem:
Код:
#pragma dynamic 15000
Any ideas?

:/
Reply
#6

i have also problems with invalid memory acces...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)