Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

I converted admiral set pass ( easy) code into se would this work?


manbearpig
 Share

Recommended Posts

Function GetPlayerPass(Index)
  GetPlayerPass = GetVar("Accounts\" & GetPlayerLogin(Index) & "_Info.ini", "ACCESS", "Password")
End Function

Sub 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 Function

Funcion Sadscript.SetPlayerPass(Index, NewPass)
    }
    Sadscript.Putvar("accoumts\ + Sadscript.GetPlayerLogin(Index) + "_Info.ini", "ACCESS", "Password", NewPass)
    }
End Function
Link to comment
Share on other sites

```
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...