LIlCheatah Posted March 23, 2009 Author Share Posted March 23, 2009 Ok, the error is the script won't call the sub right…. Link to comment Share on other sites More sharing options...
vrage Posted March 23, 2009 Share Posted March 23, 2009 @[SB:> Cheatah link=topic=41052.msg405455#msg405455 date=1237836520]> Ok, the error is the script won't call the sub right….post the script? Link to comment Share on other sites More sharing options...
Akselj Posted March 23, 2009 Share Posted March 23, 2009 Here:```''''This is in Sub Commands'''' Case "/showhs" Call ShowHS(Index) Case Else Call PlayerMsg(Index, "That is not a valid command.", BRIGHTRED) End SelectEnd SubSub ShowHS(Index) Dim Highscore Dim HighscoreName Dim HighscoreKills Highscore = 1 CMI = 1 Y = 100 Call PlayerMsg(Index, "Workin'", Brightgreen) Do While Highscore < 51 HighscoreName = GetVar("/scripts/pvp.ini", "Highscore", Highscore HighscoreKills = Int(GetVar("/scripts/pvp.ini", HighscoreName, "Kills")) Call PlayerMsg(Index, "Processing, highscore = " & Highscore & " highscore kills = " & HighscoreKills & " highscore name = " & HighscoreName & " .", BRIGHTGREEN) If Highscore = 1 Then Call CustomMenuShow(Index, "/GUI/Custom/Highscore.png", 1) End If Call CustomMenuLabel(Index, CMI, Highscore & ": " & HighscoreName & HighscoreKills , 200, Y, 10, 0, 0, 400, 20) Highscore = Highscore + 1 CMI = CMI + 1 Y = Y + 20 LoopEnd Sub``` Link to comment Share on other sites More sharing options...
emblem Posted March 23, 2009 Share Posted March 23, 2009 Give as much information as possible, because it's impossible to fix an error if we can't find it.What did you change, where is the script from, at what point does it stop (last message recieved). Every detail helps. Link to comment Share on other sites More sharing options...
LIlCheatah Posted March 23, 2009 Author Share Posted March 23, 2009 I didn't change anything, and it's for a costum menu. Link to comment Share on other sites More sharing options...
emblem Posted March 23, 2009 Share Posted March 23, 2009 @[SB:> Cheatah link=topic=41052.msg405523#msg405523 date=1237842156]> I didn't change anything, and it's for a costum menu.Sorry, but no shit.How far does the script run before stopping? Does the menu show, does it show you any messages? Does it do ANYTHING? Link to comment Share on other sites More sharing options...
LIlCheatah Posted March 23, 2009 Author Share Posted March 23, 2009 oh , It don't show anything.. Link to comment Share on other sites More sharing options...
emblem Posted March 23, 2009 Share Posted March 23, 2009 Mmk, I'll try looking over it to see.I currently can't run the script myself so I probably won't be much help.(World of Polar looks epic btw) Link to comment Share on other sites More sharing options...
Alpha Posted March 23, 2009 Share Posted March 23, 2009 @[Emblem:> link=topic=41052.msg405525#msg405525 date=1237842259]> > How far does the script run before stopping?Answer all questions..But you might have misplaced some of the subs, or the script is wrong. I wish someone would code an error checker into the Sadscript editor.-Alpha Link to comment Share on other sites More sharing options...
LIlCheatah Posted March 23, 2009 Author Share Posted March 23, 2009 @[Emblem:> link=topic=41052.msg405525#msg405525 date=1237842259]> How far does the script run before stopping?I don't get it.. Link to comment Share on other sites More sharing options...
emblem Posted March 23, 2009 Share Posted March 23, 2009 @[SB:> Cheatah link=topic=41052.msg405534#msg405534 date=1237842608]> I don't get it..You answered that by answering another one of my questions Link to comment Share on other sites More sharing options...
LIlCheatah Posted March 23, 2009 Author Share Posted March 23, 2009 Okay, Back to Topic.. I need that fixed Link to comment Share on other sites More sharing options...
emblem Posted March 23, 2009 Share Posted March 23, 2009 ```''''This is in Sub Commands'''' Case "/showhs" Call ShowHS(Index) Case Else Call PlayerMsg(Index, "That is not a valid command.", BRIGHTRED) End SelectEnd SubSub ShowHS(Index)Dim HighscoreDim HighscoreNameDim HighscoreKills Highscore = 1 CMI = 1 Y = 100 Call PlayerMsg(Index, "Workin'", Brightgreen) Do While Highscore < 51 HighscoreName = GetVar("/scripts/pvp.ini", "Highscore", Highscore) HighscoreKills = Int(GetVar("/scripts/pvp.ini", HighscoreName, "Kills")) Call PlayerMsg(Index, "Processing, highscore = " & Highscore & " highscore kills = " & HighscoreKills & " highscore name = " & HighscoreName & " .", BRIGHTGREEN) If Highscore = 1 Then Call CustomMenuShow(Index, "/GUI/Custom/Highscore.png", 1) End If Call CustomMenuLabel(Index, CMI, Highscore & ": " & HighscoreName & " " & HighscoreKills , 200, Y, 10, 0, 0, 400, 20) Highscore = Highscore + 1 CMI = CMI + 1 Y = Y + 20 LoopEnd Sub```Try now.(Missing ")" on 1st GetVar) Link to comment Share on other sites More sharing options...
LIlCheatah Posted March 24, 2009 Author Share Posted March 24, 2009 Now it says in GREEN Workin' but nothing show up. Link to comment Share on other sites More sharing options...
cheatking Posted March 24, 2009 Share Posted March 24, 2009 Case "/showhs"You missed an exit sub.HighscoreName = GetVar("/scripts/pvp.ini", "Highscore", HighscoreYou are missing a )```''''This is in Sub Commands'''' Case "/showhs" Call ShowHS(Index) Exit Sub Case Else Call PlayerMsg(Index, "That is not a valid command.", BRIGHTRED) End SelectEnd SubSub ShowHS(Index) Dim Highscore Dim HighscoreName Dim HighscoreKills Highscore = 1 CMI = 1 Y = 100 Call PlayerMsg(Index, "Workin'", Brightgreen) Do While Highscore < 51 HighscoreName = GetVar("/scripts/pvp.ini", "Highscore", Highscore) HighscoreKills = Int(GetVar("/scripts/pvp.ini", HighscoreName, "Kills")) Call PlayerMsg(Index, "Processing, highscore = " & Highscore & " highscore kills = " & HighscoreKills & " highscore name = " & HighscoreName & " .", BRIGHTGREEN) If Highscore = 1 Then Call CustomMenuShow(Index, "/GUI/Custom/Highscore.png", 1) End If Call CustomMenuLabel(Index, CMI, Highscore & ": " & HighscoreName & HighscoreKills , 200, Y, 10, 0, 0, 400, 20) Highscore = Highscore + 1 CMI = CMI + 1 Y = Y + 20 LoopEnd Sub``` Link to comment Share on other sites More sharing options...
LIlCheatah Posted March 24, 2009 Author Share Posted March 24, 2009 Same Problem.. Nothin shows just sayin in Brightgreen Workin' Link to comment Share on other sites More sharing options...
vrage Posted March 24, 2009 Share Posted March 24, 2009 ```''''This is in Sub Commands'''' Case "/showhs" Call ShowHS(Index) Case Else Call PlayerMsg(Index, "That is not a valid command.", BRIGHTRED) End SelectEnd SubSub ShowHS(Index)Dim HighscoreDim HighscoreNameDim HighscoreKills Highscore = 1 CMI = 1 Y = 100 Call PlayerMsg(Index, "Workin'", Brightgreen) If Highscore < 51 HighscoreName = GetVar("/scripts/pvp.ini", "Highscore", Highscore) HighscoreKills = Int(GetVar("/scripts/pvp.ini", HighscoreName, "Kills")) Call PlayerMsg(Index, "Processing, highscore = " & Highscore & " highscore kills = " & HighscoreKills & " highscore name = " & HighscoreName & " .", BRIGHTGREEN) Call CustomMenuShow(Index, "/GUI/Custom/Highscore.png", 1) Call CustomMenuLabel(Index, CMI, Highscore & ": " & HighscoreName & " " & HighscoreKills , 200, Y, 10, 0, 0, 400, 20) Highscore = Highscore + 1 CMI = CMI + 1 Y = Y + 20End If LoopEnd Sub``` Link to comment Share on other sites More sharing options...
LIlCheatah Posted March 24, 2009 Author Share Posted March 24, 2009 Nope, Doesn't say anything.. Not even 'Workin Link to comment Share on other sites More sharing options...
vrage Posted March 24, 2009 Share Posted March 24, 2009 @[SB:> Cheatah link=topic=41052.msg405984#msg405984 date=1237911403]> Nope, Doesn't say anything.. Not even 'WorkinLook in the chat Link to comment Share on other sites More sharing options...
LIlCheatah Posted March 24, 2009 Author Share Posted March 24, 2009 @[SB:> Cheatah link=topic=41052.msg405984#msg405984 date=1237911403]> Nope, Doesn't say anything.. Not even 'WorkinSame Problem. Link to comment Share on other sites More sharing options...
Alpha Posted March 25, 2009 Share Posted March 25, 2009 You've been repeating the same thing over and over.. When is this going to be fixed??``` Case "/showhs" Call ShowHS(Index) Case Else Call PlayerMsg(Index, "That is not a valid command.", BRIGHTRED) End SelectEnd SubSub ShowHS(Index)Dim HighscoreDim HighscoreNameDim HighscoreKills Highscore = 1 CMI = 1 Y = 100 Call PlayerMsg(Index, "Workin'", Brightgreen) If Highscore < 51 HighscoreName = GetVar("/scripts/pvp.ini", "Highscore", Highscore) HighscoreKills = Int(GetVar("/scripts/pvp.ini", HighscoreName, "Kills")) Call PlayerMsg(Index, "Processing, highscore = " & Highscore & " highscore kills = " & HighscoreKills & " highscore name = " & HighscoreName & " .", BRIGHTGREEN) Call CustomMenuShow(Index, "/GUI/Custom/Highscore.png", 1) Call CustomMenuLabel(Index, CMI, Highscore & ": " & HighscoreName & " " & HighscoreKills , 200, Y, 10, 0, 0, 400, 20) Highscore = Highscore + 1 CMI = CMI + 1 Y = Y + 20End If LoopEnd Sub```You sure you weren't putting the ""This Is In Sub Commands"" in the script?..-Alpha Link to comment Share on other sites More sharing options...
cheatking Posted March 25, 2009 Share Posted March 25, 2009 HighscoreName = GetVar("/scripts/pvp.ini", "Highscore", Highscore) HighscoreKills = Int(GetVar("/scripts/pvp.ini", HighscoreName, "Kills"))Your missing quotations. ("")Call CustomMenuShow(Index, "/GUI/Custom/Highscore.png", 1)Missing a ttle.Call CustomMenuShow(Index, "Needs a name.", "/GUI/Custom/Highscore.png", 1) Link to comment Share on other sites More sharing options...
LIlCheatah Posted March 25, 2009 Author Share Posted March 25, 2009 @[NW:> [AFRO] Sean link=topic=41052.msg406612#msg406612 date=1237996213]> HighscoreName = GetVar("/scripts/pvp.ini", "Highscore", Highscore)> HighscoreKills = Int(GetVar("/scripts/pvp.ini", HighscoreName, "Kills"))> > Your missing quotations. ("")> > Call CustomMenuShow(Index, "/GUI/Custom/Highscore.png", 1)> Missing a ttle.> Call CustomMenuShow(Index, "Needs a name.", "/GUI/Custom/Highscore.png", 1)So HighscoreName = GetVar("/scripts/pvp.ini", "Highscore", Highscore)must be HighscoreKills = Int(GetVar("/scripts/pvp.ini", HighscoreName, "Kills"))?And Call CustomMenuShow(Index, "/GUI/Custom/Highscore.png", 1)Must be Call CustomMenuShow(Index, "Needs a name.", "/GUI/Custom/Highscore.png", 1)? Link to comment Share on other sites More sharing options...
cheatking Posted March 25, 2009 Share Posted March 25, 2009 @[SB:> Cheatah link=topic=41052.msg406616#msg406616 date=1237996794]> > So HighscoreName = GetVar("/scripts/pvp.ini", "Highscore", Highscore)> must be HighscoreKills = Int(GetVar("/scripts/pvp.ini", HighscoreName, "Kills"))?No those are 2 lines of YOUR vode that are missing ""changeHighscoreName = GetVar("/scripts/pvp.ini", "Highscore", Highscore)ToHighscoreName = GetVar("/scripts/pvp.ini", "Highscore", "Highscore")AndHighscoreKills = Int(GetVar("/scripts/pvp.ini", HighscoreName, "Kills"))?ToHighscoreKills = Int(GetVar("/scripts/pvp.ini", "HighscoreName", "Kills"))?@[SB:> Cheatah link=topic=41052.msg406616#msg406616 date=1237996794]> And Call CustomMenuShow(Index, "/GUI/Custom/Highscore.png", 1)> Must be Call CustomMenuShow(Index, "Needs a name.", "/GUI/Custom/Highscore.png", 1)?yes Link to comment Share on other sites More sharing options...
LIlCheatah Posted March 25, 2009 Author Share Posted March 25, 2009 I did, but not helped 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