Invalid memory access -
DeitY - 24.03.2015
21:20:48] [debug] Run time error 5: "Invalid memory access"
[21:20:48] [debug] AMX backtrace:
[21:20:48] [debug] #0 0032cd94 in ?? (... <5 arguments>) at E:\Ostalo\Deity\NEDIRAJ\gamemodes\sa-rp.pwn:40519
[21:20:48] [debug] #1 00009dbc in public OnDialogResponse (playerid=81, dialogid=0, response=1, listitem=-1, inputtext[]=@0x01981950 "") at E:\Ostalo\Deity\NEDIRAJ\pawno\include\YSI\y_hooks/impl.inc:2251
I got this messages like 9000 in 2 sesconds..
And the line is
for (new i = 0; i < len; ++i)
if (inputtext [i] == '%')
inputtext [i] = '#';
What's wrong?
Anyhow,
[22:45:38] [debug] Run time error 20: "Invalid index parameter (bad entry point)"
Same for this, even i got main function in gamemode.
Re: Invalid memory access -
Zomboy - 24.03.2015
Not really sure about your first problem,however for your second problem there are 2 ways to fix it
1) Try to reset everything (including server.cfg)
2) You probably deleted the below code, try adding it again to your script.
Код:
public OnFilterScriptInit()
{
print("\n------------------------");
print("Your Filterscript");
print("---------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
Re: Invalid memory access -
DeitY - 24.03.2015
Its on gamemode init, and i already have main () {}
Re: Invalid memory access -
bartekdvd - 24.03.2015
Quote:
Originally Posted by DeitY
And the line is
for (new i = 0; i < len; ++i)
if (inputtext [i] == '%')
inputtext [i] = '#';
|
It seems like "len" is greater than array length or inputtext parameter is invalid (bad pointer), but I don't know the reason, because this code seems to be in y_hooks library, maybe you have used it in a wrong way?
Re: Invalid memory access -
DeitY - 24.03.2015
Its ondialogresponse , dunno :S
Re: Invalid memory access -
DeitY - 25.03.2015
Fixed. You can close this.