[Help] Accounts Problem .ini
#1

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
Reply
#2

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.
Reply
#3

#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
Reply
#4

You're using Y_INI..

Show us your /changepass command.
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)