JayT Posted August 9, 2009 Author Share Posted August 9, 2009 hey i need help before i mess anything else up!! i pm'd Godlord my main and he says i have lots of syntax errors in it and most things dont work in my game now!! can sum1 plz look it over and help me fix it?? i'll back it up when its fixed so i never break it again. i just dont wanna lose what i have up to yet or i would start again.Main link: [http://magicrealms.game-host.org/Main.txt](http://magicrealms.game-host.org/Main.txt) Link to comment Share on other sites More sharing options...
Saida Posted August 9, 2009 Share Posted August 9, 2009 *Cough*There are sad scripting tutorials on the forums*cough* Link to comment Share on other sites More sharing options...
Driocku Posted August 9, 2009 Share Posted August 9, 2009 Hmm care to tell us which parts of it you edited? Its much easier then scanning through the entire thing :P Link to comment Share on other sites More sharing options...
JayT Posted August 9, 2009 Author Share Posted August 9, 2009 well all i can see now thats not working is godlord inv script which i added as a include. when a player joins it dont tell them whos online. i think a sub may be 'broken' somwere but i cant find nothing wrong lol :huh: Link to comment Share on other sites More sharing options...
Driocku Posted August 9, 2009 Share Posted August 9, 2009 After Which point did it stop working, and this is why you save back-ups after eaching working version Link to comment Share on other sites More sharing options...
Harris6310 Posted August 9, 2009 Share Posted August 9, 2009 I saw one. Its right at the top.Replace:```#include```With:```#include #include ``` Link to comment Share on other sites More sharing options...
JayT Posted August 9, 2009 Author Share Posted August 9, 2009 ok changed that but still not giving or takin itemsEDIT: non of my scripted items are working aswell!! OMG ITS ALL DYING :cry: Link to comment Share on other sites More sharing options...
JayT Posted August 9, 2009 Author Share Posted August 9, 2009 weres admiral when ya need him lolz i hope he sees this post and is willing to help.Bump* Link to comment Share on other sites More sharing options...
xelander Posted August 9, 2009 Share Posted August 9, 2009 Make sure the server is restarted and scripts are "ON"Lol Link to comment Share on other sites More sharing options...
Godlord Posted August 9, 2009 Share Posted August 9, 2009 @Harris:> I saw one. Its right at the top.> > Replace:> ```> #include> ```> With:> ```> #include #include > ```It is:> #include #includeMy syntax checker might be retarded though because it always pointed at comments, telling me that you're missing "Then".Plus you site is down. Upload it as an attachment.Regards, Godlord. Link to comment Share on other sites More sharing options...
JayT Posted August 9, 2009 Author Share Posted August 9, 2009 sites back up now and ive sorted the include error at the top. im keeping it on my site so i can update it when people find errors Link to comment Share on other sites More sharing options...
Mr. Bob Firefarter Posted August 9, 2009 Share Posted August 9, 2009 Did you do your cases right? Link to comment Share on other sites More sharing options...
JayT Posted August 10, 2009 Author Share Posted August 10, 2009 dude ive been looking at this that long my eyeballs are goin dry lol.@DNA: yer i think i got all my cases right i'll double check them again… Link to comment Share on other sites More sharing options...
JayT Posted August 10, 2009 Author Share Posted August 10, 2009 sry for double post but i think i read somewere on here the other day that you can put a code in your main that dont break it up if theres a broken code in it. maybe that can help me find the problem? can some1 gimme a link plz cos i cant find it now!! lol :huh: Link to comment Share on other sites More sharing options...
DrNova Posted August 10, 2009 Share Posted August 10, 2009 Not that I've ever hear of. On Error Resume Next can work for subs i think Link to comment Share on other sites More sharing options...
JayT Posted August 10, 2009 Author Share Posted August 10, 2009 yer i put that in the subs that are not working to test them out and still i get nothing but best of all admiral did sum scripts for me and i no he rarely gets things wrong in sadscript!! Link to comment Share on other sites More sharing options...
JayT Posted August 12, 2009 Author Share Posted August 12, 2009 well i give up…. ive searched and searched and searched through my main and through source and can see no errors to my knowledge. Link to comment Share on other sites More sharing options...
DarkMazer Posted August 12, 2009 Share Posted August 12, 2009 ```Sub QueryBox(index, Prompt)Value = GetVar("responses.ini","Responses",Cstr(index))If Prompt = 0 ThenCall playermsg(index, "lol", 12)End IfEnd SubEnd Sub```Delete the second End Sub. ```If GetVar("Accounts\" & GetPlayerLogin(Index) & "\" & GetPlayerName(Index) ".ini", "EXTRAS", "DOUBLEEXP") = "1" Then Call SetPlayerExp(Index, GetPlayerExp(Index) + GetNpcExp(NPCNum))End IfEnd Sub```Replace with:```If GetVar("Accounts\" & GetPlayerLogin(Index) & "\" & GetPlayerName(Index) & ".ini", "EXTRAS", "DOUBLEEXP") = "1" Then Call SetPlayerExp(Index, GetPlayerExp(Index) + GetNpcExp(NPCNum))End IfEnd Sub``````Case 3 Call PutVar("Accounts\" & GetPlayerLogin(Index) & "\" & GetPlayerName(Index) ".ini", "EXTRAS", "DOUBLEEXP", "1") Call PlayerMsg(Index, "For the next hour, you will have double-EXP", WHITE) Call PlayerMsg(Index, "Please do not logout, or the item's effect will stop early", WHITE) Call SetTimer("RemoveExp " & Index, 3600000) Call TakeItem(Index, 81, 1) Exit Sub```Replace with:``` Case 3 Call PutVar("Accounts\" & GetPlayerLogin(Index) & "\" & GetPlayerName(Index) & ".ini", "EXTRAS", "DOUBLEEXP", "1") Call PlayerMsg(Index, "For the next hour, you will have double-EXP", WHITE) Call PlayerMsg(Index, "Please do not logout, or the item's effect will stop early", WHITE) Call SetTimer("RemoveExp " & Index, 3600000) Call TakeItem(Index, 81, 1) Exit Sub`````` Case Else Exit SubEnd Sub ```Replace with:``` Case Else Exit Sub End SelectEnd Sub``````Sub RemoveExp(Index) Call PutVar("Accounts\" & GetPlayerLogin(Index) & "\" & GetPlayerName(Index) ".ini", "EXTRAS", "DOUBLEEXP", "0") Call RemoveTimer("RemoveExp " & Index)End Sub```Replace with:```Sub RemoveExp(Index) Call PutVar("Accounts\" & GetPlayerLogin(Index) & "\" & GetPlayerName(Index) & ".ini", "EXTRAS", "DOUBLEEXP", "0") Call RemoveTimer("RemoveExp " & Index)End Sub```That should be all the syntax problems. Link to comment Share on other sites More sharing options...
JayT Posted August 12, 2009 Author Share Posted August 12, 2009 wow i think i love you lol :P j/k… still dont take items for some reason tho Link to comment Share on other sites More sharing options...
JayT Posted August 12, 2009 Author Share Posted August 12, 2009 IVE DONE IT!!! thanks to all for pointing my stupid mistakes out lol wownt happen again now that im gettin better at sadscript and vb i promise lol :azn: 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