Jacquelinett Posted April 8, 2011 Author Share Posted April 8, 2011 I added a form with lots of PlaySound command and i added in modInput /bard to open the form. But when i open the form in the game, the server crashed and said "Error Type Mismatch". What should I do? Link to comment Share on other sites More sharing options...
Lavos Posted April 8, 2011 Share Posted April 8, 2011 Your code is not getting synced up correctly with a data type your are using for a value. Link to comment Share on other sites More sharing options...
Jacquelinett Posted April 8, 2011 Author Share Posted April 8, 2011 This is what I put:Sub Something i dont remember blah blah_ClickPlaySound "Har001.wav"End SubThat is it Link to comment Share on other sites More sharing options...
Lavos Posted April 8, 2011 Share Posted April 8, 2011 lol you have to always try to remember. It's a must do, take notes if you have to. Link to comment Share on other sites More sharing options...
Jacquelinett Posted April 8, 2011 Author Share Posted April 8, 2011 what is the solution??? -.- lol i put that in and it didnt work :P Link to comment Share on other sites More sharing options...
Jeff Posted April 8, 2011 Share Posted April 8, 2011 Har001.wav would have to be in the right directory. It won't find it unless u place it in the right directory. Either tell the command where to find Har001.wav or put Har001.wav into the same folder as the client. Link to comment Share on other sites More sharing options...
Devogen Posted April 8, 2011 Share Posted April 8, 2011 @TianaJRP:> what is the solution??? -.- lol i put that in and it didnt work :PPlaySound App.Path & "Har001.wav" Link to comment Share on other sites More sharing options...
Lavos Posted April 8, 2011 Share Posted April 8, 2011 @TianaJRP:> what is the solution??? -.- lol i put that in and it didnt work :PI'm not able figure out a solution with a guess and lack of details on what yo are trying to do. Maybe if you post the source code or a screen shot then I could maybe we can get a clear view on what you are trying to make. Link to comment Share on other sites More sharing options...
Jacquelinett Posted April 8, 2011 Author Share Posted April 8, 2011 Okay… I was trying to make a Harp playing system. Har001 mean Harp001, which is the C sound. So, I created a new form called frmHarp. I added a bunch of command box there and each box i gave it a:PlaySound "har001.wav" (har002,...)THe har001 file is inside the sound folder. Link to comment Share on other sites More sharing options...
Lavos Posted April 8, 2011 Share Posted April 8, 2011 What code are you using under "Public Sub HandleKeyPresses()"?Edit - What I'm guessing is that you used:```Case "/editharp" If GetPlayerAccess(MyIndex) < ADMIN_DEVELOPER Then GoTo ContinuesendRequestharp ' (or wav player or whatever)```You need to write a public sub value(sendRequestharp) in modClientTCP like so:```Public Sub SendRequestEditShop()Dim Buffer As clsBuffer ' If debug mode, handle error then exit out If Options.Debug = 1 Then On Error GoTo errorhandler Set Buffer = New clsBuffer Buffer.WriteLong CRequestHarp SendData Buffer.ToArray() Set Buffer = Nothing ' Error handler Exit Suberrorhandler: HandleError "SendRequestHarp", "modClientTCP", Err.Number, Err.Description, Err.Source, Err.HelpContext Err.Clear Exit SubEnd Sub```Then grab the value"CRequestHarp" and add it to modEnums under the "C" section (block of code the client side.)Final Note: I'm guessing that the problem was the link between the server and the client. With the codes above, The server needs to check if you have admin rights to open a form. Also keep in mind that this is from the top of my head so I'm not exactly 100% sure if this is going to work. Don't cut and paste just use it as a reference. Link to comment Share on other sites More sharing options...
Jacquelinett Posted April 9, 2011 Author Share Posted April 9, 2011 No! XD You understanded it wrong!!! lol, when I said C, i mean Do-re-mi-fa and stuff! I love music so i want to add something to my game that is about music lol. The C is a note, i dont know how to explain it, but it is like C-D-E-F-G-A-B. You know… the keyboard xD Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now