manbearpig Posted August 5, 2009 Author Share Posted August 5, 2009 Function GetPlayerPass(Index) GetPlayerPass = GetVar("Accounts\" & GetPlayerLogin(Index) & "_Info.ini", "ACCESS", "Password")End FunctionSub SetPlayerPass(Index, NewPass) Call PutVar("Accounts\" & GetPlayerLogin(Index) & "_Info.ini", "ACCESS", "Password", NewPass)End Sub______________Function Sadscript.GetplayerPass(index) } Sadscript.GetPlayerPass = Sadscript.Getvar("Accounts\" + Sadscript.GetplayerLogin(index) + "_Info.ini", "ACCESS", "Passwprd") }End FunctionFuncion Sadscript.SetPlayerPass(Index, NewPass) } Sadscript.Putvar("accoumts\ + Sadscript.GetPlayerLogin(Index) + "_Info.ini", "ACCESS", "Password", NewPass) }End Function Link to comment Share on other sites More sharing options...
Admiral Refuge Posted August 5, 2009 Share Posted August 5, 2009 ```function GetPlayerPass(index){ return SadScript.Getvar("Accounts\" + SadScript.GetplayerLogin(index) + "_Info.ini", "ACCESS", "Password");}function SetPlayerPass(Index, NewPass){ SadScript.Putvar("Accounts\" + SadScript.GetPlayerLogin(Index) + "_Info.ini", "ACCESS", "Password", NewPass);}```I'd look into learning JavaScript syntax; because current sadscript is VBScript, whereas SE will be using JavaScript. 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