my acc won't save on the database.
#1

I have a problem with my reg system the problem is when you register to the server the acc won't save on the database so that's mean when i relog with my acc i registered its tell me to register again.
here is the code:

pawn Код:
stock RegisterPlayer(playerid)
{
    new password[144];
    GetPVarString(playerid, "Password", password, sizeof(password));

    new Query[144];
    mysql_format(mysqlHandle, Query, sizeof(Query), "INSERT INTO `players` SET \
        `username` = '%e', \
        `password` = sha1('%e')"
,
        pName(playerid),
        password);
    mysql_tquery(mysqlHandle, Query, "OnPlayerRegister", "d", playerid);
    GivePlayerMoney(playerid, 2500);
    SetPlayerScore(playerid, 1);
}
Any problem in this code?
Reply


Messages In This Thread
my acc won't save on the database. - by HeroDR22 - 03.06.2018, 16:47
Re: my acc won't save on the database. - by k2bi - 03.06.2018, 16:54
Re: my acc won't save on the database. - by HeroDR22 - 03.06.2018, 17:15
Re: my acc won't save on the database. - by Sew_Sumi - 03.06.2018, 20:59
Re: my acc won't save on the database. - by HeroDR22 - 04.06.2018, 00:48
Re: my acc won't save on the database. - by Sew_Sumi - 04.06.2018, 02:24
Re: my acc won't save on the database. - by GTLS - 04.06.2018, 05:10
Re: my acc won't save on the database. - by SyS - 04.06.2018, 06:04
Re: my acc won't save on the database. - by Sithis - 04.06.2018, 14:24

Forum Jump:


Users browsing this thread: 1 Guest(s)