This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuoteregsvr32 libpng15.dll
Quote from: KAKAN on Mar 06, 2016, 11:58 AMIt's not about just giving him some code, you got to make sure he actually understands it.Quote from: Danix on Mar 06, 2016, 11:53 AMIt's sending an error because the file you are trying to write on does not exist, you have to create it yourself. Since the ini plugin does not have a function to create you have to use the file function.I made the same function -_-function RegisterPlayer( Player, Text ) {
That should work, although I haven't tested it ^
file(Path + "Data/" + Player.Name + ".ini","wb+");
WriteIniString( Path + "Data/" + Player.Name + ".ini", "Account", "Name", Player.Name );
WriteIniString( Path + "Data/" + Player.Name + ".ini", "Account", "IP", Player.IP );
WriteIniString( Path + "Data/" + Player.Name + ".ini", "Account", "Password", Text );
WriteIniInteger( Path + "Data/" + Player.Name + ".ini", "Account", "Level", 1 );
WriteIniInteger( Path + "Data/" + "Logs.ini", "Active", Player.Name , 1 );
MessagePlayer("You have been registered", Player );
}
And also, a+ will work instead of wb+ and you forgot to close the file
function RegisterPlayer( Player, Text ) {
file(Path + "Data/" + Player.Name + ".ini","wb+");
WriteIniString( Path + "Data/" + Player.Name + ".ini", "Account", "Name", Player.Name );
WriteIniString( Path + "Data/" + Player.Name + ".ini", "Account", "IP", Player.IP );
WriteIniString( Path + "Data/" + Player.Name + ".ini", "Account", "Password", Text );
WriteIniInteger( Path + "Data/" + Player.Name + ".ini", "Account", "Level", 1 );
WriteIniInteger( Path + "Data/" + "Logs.ini", "Active", Player.Name , 1 );
MessagePlayer("You have been registered", Player );
}
That should work, although I haven't tested it ^