Invalid memory access
#1

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.
Reply
#2

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
Reply
#3

Its on gamemode init, and i already have main () {}
Reply
#4

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?
Reply
#5

Its ondialogresponse , dunno :S
Reply
#6

Fixed. You can close this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)