Dini with 0.3
#1

A scripting question: Does Dini work with 0.3? Or is there any way to change some stuff with it so that It does work correctly? Because I've been using dini for like 6 months now, and since 0.3 came out, it doesn't work anymore. It used to work perfectly fine with 0.2x

Dini used to save stuff to files like this:

Item1=Text
Item2=integer
Item3=float

but now its saving stuff like this:

Item1=TextItem2=1Item3=2.83

If anyone knows how to fix this problem, please respond =P thanks in advance
Reply
#2

Dini works as before, maybe you changed to Linux server? (it likes to keep messing files like that...)
Reply
#3

no, nothing changed. Im still on the same computer, same OS, it just hasn't worked with 0.3 servers =P
Reply
#4

Is this right:
Код:
	if((dialogid == 2) && (response == 1))
		{
    new tmp[128];
 		new file[256];
    new pw[256];
		pw = dini_Get(file, "password");
		new pName[24];
		GetPlayerName(playerid, pName, sizeof(pName));
		format(file, sizeof(file), "%s.ini", pName);
		new tmppass[64];
		strmid(tmppass, tmp, 0, strlen(inputtext), 255);
		if(udb_hash(inputtext) == udb_hash(pw))
		{
			OnPlayerLogin(playerid,tmppass);
		}
		else
		{
			ShowPlayerDialog(playerid, 2,1,"Wrong Password", "That Password was not correct.\nPlease try again, or change your name.","Login","cancel");
		}
		return 1;
	}
	if((dialogid == 2) && (response == 0))
	{
		SendClientMessage(playerid, COLOR_RED, "You must log in to use this server");
		Kick(playerid);
 	}
 	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)