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.

DLL Talk / Can someone help me with LUA

Author
Message
White Dragon
20
Years of Service
User Offline
Joined: 22nd Mar 2005
Location:
Posted: 16th Aug 2006 18:07
I want to handle my external data with scripts but i keep getting errors with my scripts. Could someone please help me and tell me what i'm doing wrong?





I Keep Getting the error "Parameter for 'load animation' do not match 'filename,animation number'

is there something i'm missing to read the veriables from the lua script? Could someone please tell me what code i'm missing to get this to work thanks.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 16th Aug 2006 19:38
I don't have either of the LUA plugins, so I can't tell you how to fix it - I can tell you what is wrong though. Nowhere in your DBPro code do you set the Video$ or AnimNumber$ variables. Also, the AnimNumber$ variable needs to be an integer instead of a string.

Cave Man
18
Years of Service
User Offline
Joined: 22nd Aug 2006
Location: North Carolina, US
Posted: 22nd Aug 2006 16:39
First of all, your getting an error because your AnimNumber$ is a string because of the dollar symbol after it, try just AnimNumber.
Also, the Lua variables are not connected with dbpro variables, so in your case you would have to do this:

Lua code


DBP code
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 1st Sep 2006 11:52
Cave Man's got it completely right.

Login to post a reply

Server time is: 2025-05-18 08:08:56
Your offset time is: 2025-05-18 08:08:56