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.

Newcomers DBPro Corner / specify parameter

Author
Message
BULLSHOCK
19
Years of Service
User Offline
Joined: 15th May 2005
Location:
Posted: 6th Jun 2005 13:09
this script returns this error:

"could not determine parameter type of 'file end 2' at line 7"


load animation "intro.mpg",1
play animation 1
wait 95000
STOP animation 1
execute file "project_exodus.exe","","",2,
1=file end 2
load animation "trailer. mpg",3
play animation 3
wait 60000
execute file "lv2.exe",4


this is line 7:

1=file end 2



what im trying to do is to get an intro movie played, then start level one of my game, then, when that is over, play another animation, and start level 2 of my game


can anyone help???

-I will beat anyone in HALO2!
BULLSHOCK
19
Years of Service
User Offline
Joined: 15th May 2005
Location:
Posted: 6th Jun 2005 15:10
am i using the file end command wrong?

-I will beat anyone in HALO2!
zenassem
21
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 6th Jun 2005 15:21 Edited at: 6th Jun 2005 15:40
I would say yes.

1=file end 2????

I cannot understand what you are trying to do here. You are basically trying to make 1 equal to file end 2.

-first-
1 is not a variable.

-second- file end 2 doesn't mean anything the command is
file end(2)
It's a function that returns an interger
Return Integer=FILE END(File Number)

-third-
File end is used in conjunction with the file commands ie. READ FILE. When there is no more data to be read from a file the command returns a 1, otherwise it returns 0

So if you were reading data from say file number 2 you could check if there is anymore data

if (file end(2))=1
`done reading file
endif

=====

I haven't tried to do what you are attempting, but I would think that you would place a 1 for the 'wait flag' parameter in the execute file command.

EXECUTE FILE filename,Commandline,Directory,Wait Flag
If the optional Wait Flag value is set to one, then the application will wait until the executable has finished.

-------

It looks to me as though you are using the number 2 as though it's animation 2. And then you are playing animation 3.

Why not delete animation 1 after it's complete?
If you are going to use it again then why isn't the second animation
animation 2?

~zen

Login to post a reply

Server time is: 2024-09-23 21:21:19
Your offset time is: 2024-09-23 21:21:19