azure Posted July 18, 2009 Author Share Posted July 18, 2009 So I'm making a scripted item, when you use the item it adds to a variable in an ini in the accounts folder. The problem is at the end. It needs to get the variable to add to it, I think, but it won't seem to work. If someone could help me make this work i'd appreciate it.Here's the code```Case 1 Call PutVar("accounts\" & GetPlayerLogin(index) & ".ini " , "CHAR" & GetPlayerCharNum(Index) , "badgelevel",GetVar("accounts\GetPlayerLogin(Index) & ".ini","CHAR" & GetPlayerCharNum(Index),"badgelevel")+1) Call TakeItem(index,4,0) Exit Sub``` Link to comment Share on other sites More sharing options...
Bobosk Posted July 18, 2009 Share Posted July 18, 2009 ```Call PutVar("accounts\" & GetPlayerLogin(index) & ".ini " , "CHAR" & GetPlayerCharNum(Index) , "badgelevel", GetVar("accounts\" & GetPlayerLogin(Index) & ".ini", "CHAR" & GetPlayerCharNum(Index), "badgelevel") + 1)``` Link to comment Share on other sites More sharing options...
azure Posted July 18, 2009 Author Share Posted July 18, 2009 Thank you so much. ^_^You know I actually face palmed when I realized what you changed. Link to comment Share on other sites More sharing options...
Bobosk Posted July 18, 2009 Share Posted July 18, 2009 would you like to know where you errored? Too bad, i'm telling you anywaysit was in your getvar statement```GetVar("accounts\GetPlayerLogin(Index) & ".ini","CHAR" & GetPlayerCharNum(Index),"badgelevel")+1)```Specifically,```"Accounts\GetPlayerLogin(Index) & ".ini"```It's supposed to be:```"Accounts\" & GetPlayerLogin(Index) & ".ini"``` 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