Dini with 0.3 - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dini with 0.3 (
/showthread.php?tid=104926)
Dini with 0.3 -
Annihalation - 26.10.2009
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
Re: Dini with 0.3 -
DiDok - 26.10.2009
Dini works as before, maybe you changed to Linux server? (it likes to keep messing files like that...)
Re: Dini with 0.3 -
Annihalation - 26.10.2009
no, nothing changed. Im still on the same computer, same OS, it just hasn't worked with 0.3 servers =P
Re: Dini with 0.3 -
jamesb93 - 26.10.2009
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;
}