Help with PlayVideo scripting!!

Started by Mr.Trant, Sun 20/04/2003 21:02:47

Previous topic - Next topic

Mr.Trant

 >:( >:(OMG i have tried to scrpit a PLayVideo thing but i cant seem to get it right!! ??? ??? ???



:-XPLEASE HELP!!!! :-X

scotch

OMG WTF !!! OMG

well you could start by posting the script, and have you put the video in correct folder and got the name right?

Mr.Trant

ya i put the video in the right folder but it wont let me save when i have...

PlayVideo (1);

... as the RUn Script thing.

scotch

well that's because it's wrong..

PlayVideo (string filename, int skip, int flags);

is what you need..

oh and from the manual

FLAGS can be one of the following:

0: the video will be played at original size, with AVI audio
1: the video will be stretched to full screen, with appropriate
  black borders to maintain its aspect ratio and AVI audio.
10: original size, with game audio continuing (AVI audio muted)
11: stretched to full screen, with game audio continuing (AVI audio muted)

SKIP defines how the player can skip the video:
0  player can't skip video
1  player can press ESC to skip video
2  player can press any key to skip video
3  player can press any key or click mouse to skip


Mr.Trant

wuts the string filename??

when i put...

PlayVideo ( 1, 3, 1);

.. it says-" Type mismatch- string with non-string"

scotch

a string is a sequence of letters..
so if the video is called vid52.kip you put

PlayVideo ( "vid52.kip", 3, 1);

I think anyway.. never used this function.

Mr.Trant


SMF spam blocked by CleanTalk