THIS IS THE TEST SITE OF EUROBRICKS!
-
nicotornare started following Cheatay
- Control all your Powered Up & Power Function (SBrick) devices with a single software
- Control all your Powered Up & Power Function (SBrick) devices with a single software
-
Control all your Powered Up & Power Function (SBrick) devices with a single software
hi again I tested at the moment and still no result :( The global code: public static string [] sound = { "siflement1", }; public const int bell = 1; public const string path = "C: \\ Users \\ Rebecca \\ Downloads \\ Lego Train Project \\"; // ---- play ---------------------------- // static void play (int so) { System.Media.SoundPlayer player = new System.Media.SoundPlayer (); string fn = path + sound [so] + ". wav"; player.SoundLocation = fn; player.Play (); } The compil is ok but when I execute the command "play (bell);", I have the following error: "FATAL ERROR In Program: The index is outside the bounds of the table."
-
Control all your Powered Up & Power Function (SBrick) devices with a single software
Thanks again :) but it does not work. I checked the names and directories: everything looks ok. What I have in the global code: // The code in this section will be available in all other programs! // ////////////////////////////////////////////////// ///////////////////// // Create your own enums public enum MyEnum { MyYellowTrain = 0, MyRedTrain = 1 } // Create your own helper functions public void MyGlobalFunction () { // Execute your code here public static string [] sound = {// Filenames "Xxx" "Siflement1", // <----- 1 ------ change this to a filename on your disk without the .wav "sound2", // <------ 2 ----- change this into a filename on your disk without the .wav }; public const int bell = 1; // <---------- changes "bell" to the name you want to start the sound or leave it as "bell" public const int hupe = 2; // <---------- changes "hupe" into the name of "hupe" public const string path = "C: \\ Users \\ Denis \\ Downloads \\ Lego \\ Layout \\"; // <----- 3 ----- change this to the path of the sounds on the disk, note the double \\ // ---- play ---------------------------- // <------ leave the rest as it is static void play (int so) { System.Media.SoundPlayer player = new System.Media.SoundPlayer (); string fn = path + sound [so] + ". waw"; player.SoundLocation = fn; player.Play (); } } // Create your own constants! public const int RED_TRAIN = 1; public const int YELLOW_TRAIN = 2; and error messages: Compiling code ... Compiling failed. Error (CS1513):} expected Error (CS1518): Class, delegate, enum, interface, or expected struct Error (CS1518): Class, delegate, enum, interface, or expected struct Error (CS1518): Class, delegate, enum, interface, or expected struct Error (CS1518): Class, delegate, enum, interface, or expected struct Error (CS1001): The expected identifier Error (CS0116): A namespace can not directly contain members such as fields or methods Error (CS1022): Definition of type or namespace, or expected end of file
- Control all your Powered Up & Power Function (SBrick) devices with a single software
- Control all your Powered Up & Power Function (SBrick) devices with a single software
- Creator Winter Village + Friends Snow Resort?
-
Mos Eisley cantina
Like this ? Look this topic : https://www.brickpirate.net/forum/phpBB3/viewtopic.php?f=60&t=21848 I mixed the old and new together with a few more pieces :)
-
Dio Winter Village 2017
Hello, Here is my diorama winter village : And a video among the best blockbusters :
- Creator Winter Village + Friends Snow Resort?
-
Creator Winter Village + Friends Snow Resort?
Thanks, For those interested, here are the links for LDD files : Snow Resort Ski Lift : https://www.dropbox.com/sh/c81pz1n8csxavwi/AADj8nuqcJgJrsrX9dia_YoWa?dl=0 Snow Resort Chalet : https://www.dropbox.com/sh/rlkhq72m5lbvbxd/AADXphjUWmdT_d7S1Ku4VEcua?dl=0 Chocolate Van : https://www.dropbox.com/sh/o48jpxj4gcp1795/AABO1GTVPhaQVGvt-Au8Y375a?dl=0
-
Cheatay started following Creator Winter Village + Friends Snow Resort?
- Creator Winter Village + Friends Snow Resort?
-
The Best 2014 LEGO Star Wars Minifigure Round 1.7
Chief Tarfful
-
The Best 2014 LEGO Star Wars Minifigure Round 1.7
Gray Squadron Pilot
-
The Best 2014 LEGO Star Wars Minifigure Round 1.7
Bith Musician.
Sponsored Links