Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / lua problem with strings

Author
Message
nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 12th Feb 2011 02:49
I am having problems with lua, i want to make a script that contains command that returns a string, but how can i do this, i tried everything that i could find in help file and such regarding this but all i get is memory could not be "read" error even when i modify demo code.
CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 12th Feb 2011 03:47
It'd be best if you attach some code so we can see what we're looking at.

Malevolence: The Sword of Ahkranox
The infinite RPG
http://www.msoa-game.com
nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 12th Feb 2011 18:36
i can't show my code because it is larger then 2000 lines, i have this in script file



so how can i get string from GetError function and print it to screen.
nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 13th Feb 2011 21:32
here is the problem when isolated from my program

this is in dbp


last two commands just write output to the file

and this is the lua script


Now the problem is that i get empty string insted of "Simulated error" one, can someone tell me how to return the string from this command? Btw i am using barnskis's lua plugin.

Login to post a reply

Server time is: 2026-07-16 01:44:32
Your offset time is: 2026-07-16 01:44:32