"Invalid memory access" 0.3d
#7

If anyone still might look into this thread, then I just encountered that error on me and I debugged like a hour or so. Cause I had lots of functions which depended on each other nested in each other and so. And I finally catched the reason why it gives that error.
I had one function where I wanted to return string from one of my functions which also returned string from function. So yeah, returning string from function can cause an issue like this. So yeah to fix this, before you return string, you have to get your string which you want to return, formatted in some string variable, and then you have to return the string variable. (It also might be my own incompetent by not knowing maybe it's written in PAWNs refenrece that you can't do that like this but yeah...)

So yeah maybe it helps someone in the future. Im going to copy and paste that case to other topics too related to that error. Maybe it helps some fellow scripters on the path.
Reply


Messages In This Thread
"Invalid memory access" 0.3d - by EleMenTalL - 01.12.2011, 13:39
Re: "Invalid memory access" 0.3d - by JernejL - 01.12.2011, 13:48
Re: "Invalid memory access" 0.3d - by EleMenTalL - 01.12.2011, 14:32
Re: "Invalid memory access" 0.3d - by Calgon - 01.12.2011, 15:00
Re: "Invalid memory access" 0.3d - by EleMenTalL - 01.12.2011, 16:23
Re: "Invalid memory access" 0.3d - by EleMenTalL - 02.12.2011, 16:51
Re: "Invalid memory access" 0.3d - by Caupo - 04.04.2014, 21:31

Forum Jump:


Users browsing this thread: 3 Guest(s)