Dastyruck Posted July 4, 2009 Author Share Posted July 4, 2009 Ok, this is stupid… When I have it check the menu title it magically doesnt work, but when it skips that, it magically orks, however I cant differ with all the diff menus...Help?Please?> '********************************> Sub MenuScripts(Index, Clicked_Index, Menu_Type)> '********************************> Dim MenuTitle> Dim FieldMessage> > MenuTitle = getplayermenuclicktitle(Index)> FieldMessage = getplayermenuclickmsg(Index)> > Select Case Menu_Type> Case 1> > > Case 2> > Case 3> If MenuTitle = "WeaponSmithing" Then> If Clicked_Index = 1 Then> Call Craft(Index, 3, 8, 2, 44, 1, 45, 3, 46, 1, 0,0,0,0,0,0) > End If> Else If MenuTitle = "ArmorSmithing" Then> If Clicked_Index = 1 Then> Call Craft(Index, 3, 8, 2, 44, 1, 45, 3, 46, 1, 0,0,0,0,0,0) > End If> Else If MenuTitle = "Cooking" Then> If Clicked_Index = 1 Then> Call Craft(Index, 3, 8, 2, 44, 1, 45, 3, 46, 1, 0,0,0,0,0,0) > End If> Else If MenuTitle = "Alchemy" Then> If Clicked_Index = 1 Then> Call Craft(Index, 3, 8, 2, 44, 1, 45, 3, 46, 1, 0,0,0,0,0,0) > End If> Else If MenuTitle = "Bowery" Then> If Clicked_Index = 1 Then> Call Craft(Index, 3, 8, 2, 44, 1, 45, 3, 46, 1, 0,0,0,0,0,0) > End If> End If> End Select> End Sub Link to comment Share on other sites More sharing options...
Patrick Posted July 4, 2009 Share Posted July 4, 2009 why are there 2 empty cases? Link to comment Share on other sites More sharing options...
Dastyruck Posted July 4, 2009 Author Share Posted July 4, 2009 Those are for picture clicks and input boxes. Link to comment Share on other sites More sharing options...
Patrick Posted July 4, 2009 Share Posted July 4, 2009 Shouldn't you fill them in? Link to comment Share on other sites More sharing options...
Bobosk Posted July 4, 2009 Share Posted July 4, 2009 he doesn't need to, you CAN have empty cases in Sadscripting Link to comment Share on other sites More sharing options...
balliztik1 Posted July 4, 2009 Share Posted July 4, 2009 ElseIf, not Else If. There's no space. Link to comment Share on other sites More sharing options...
Dastyruck Posted July 4, 2009 Author Share Posted July 4, 2009 Still no worky, I have had problems with this before, never knew why… Link to comment Share on other sites More sharing options...
Dastyruck Posted July 4, 2009 Author Share Posted July 4, 2009 Alright, I have been doing some things to try and make this work, but it just seems like its going to be stubborn… SO, I might have to re-think the way I use it, but thanks for the help. There is honestly nothing wrong with the script, just one of those annoying eclipse bugs I guess... Link to comment Share on other sites More sharing options...
shrig94 Posted July 4, 2009 Share Posted July 4, 2009 Are you using 2.8? Link to comment Share on other sites More sharing options...
Dastyruck Posted July 6, 2009 Author Share Posted July 6, 2009 Yes, I am… I keep having problems with perfect codes... Link to comment Share on other sites More sharing options...
Admiral Refuge Posted July 6, 2009 Share Posted July 6, 2009 @Dastyruck:> Yes, I am… I keep having problems with perfect codes...You have scripting turned on, right?(Server -> Control Panel Tab -> Scripts: ON) Link to comment Share on other sites More sharing options...
Dastyruck Posted July 6, 2009 Author Share Posted July 6, 2009 Of course I do… Link to comment Share on other sites More sharing options...
manbearpig Posted July 6, 2009 Share Posted July 6, 2009 What is this for what are you tring to fix *looked at topic**looks at code* * looks at replys* I still don't get it Link to comment Share on other sites More sharing options...
Owen F Posted July 7, 2009 Share Posted July 7, 2009 im not 100% sure on this but GetPlayerMenuClickTitle??? PLAYER MENU CLICK TITLES?Lol.I have no idea. Link to comment Share on other sites More sharing options...
Bobosk Posted July 7, 2009 Share Posted July 7, 2009 INH, you really should use a main.txt when replying to posts like this. That function has ALWAYS been in the menuscripts sub 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