SA-MP Forums Archive
[Help] Accounts Problem .ini - 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)
+--- Thread: [Help] Accounts Problem .ini (/showthread.php?tid=395435)



[Help] Accounts Problem .ini - Lumixa - 26.11.2012

hello guys i have server.

and i am using .ini to save accounts

so problem is, when you register your password usually u can login with it

BUT if you change password with /changepass cmd

after reconnect you cant join with new pass and old too...

Also if you change something in .ini then you can connect with any pass

----

please help


sry for bad eng


Re: [Help] Accounts Problem .ini - iTzZh - 26.11.2012

I've had issues similar to this. I assume you're using dini. It's crappy, outdated, etc. Upgrade to Y_INI or SQL and you won't have those issues.


Re: [Help] Accounts Problem .ini - Lumixa - 26.11.2012

#include <a_samp>
#include <float>
#include <time>
#include <file>
#include <mxINI>
#include <utils>
#include <streamer>
#include <foreach>
#include <YSI\y_timers>
#include <audio>

here is the list what i use includes


Re: [Help] Accounts Problem .ini - Elysian` - 26.11.2012

You're using Y_INI..

Show us your /changepass command.


Re: [Help] Accounts Problem .ini - Lumixa - 26.11.2012

Quote:

if(strcmp(cmd, "/changepass", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You need to login first.");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " This feature is comming up on next release");
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /changepass [password]");
return 1;
}
strmid(PlayerInfo[playerid][pPass], tmp, 0, strlen(cmdtext), 255);
OnPlayerUpdate(playerid);
SendClientMessage(playerid, COLOR_YELLOW, " Password has been changed successfuly");
}
return 1;
}

here is it