SA-MP Forums Archive
Register Problem. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Register Problem. (/showthread.php?tid=407850)



Register Problem. - BiZzZy - 15.01.2013

Hello,
I've put the gamemode on host, and when you connect to the server, type the register password, and nothing.


MySQLCreateAccount :
pawn Код:
public MySQLCreateAccount(newplayersname[], newpassword[], playerid)
{
    new query[128];
    new sqlplyname[64];
    new sqlpassword[64];
    mysql_real_escape_string(newplayersname, sqlplyname);
    mysql_real_escape_string(newpassword, sqlpassword);
    format(query, sizeof(query), "INSERT INTO players (Name, Password) VALUES ('%s', '%s')", sqlplyname, sqlpassword);
    mysql_query(query);
    Registerr[playerid] = 2;
    print("[MySQL]: Un nou cont a fost creat in baza de date!(..)01");
    mysql_free_result();
    print("[MySQL]: Un nou cont a fost creat in baza de date!(..)02");
    //mysql_free_result();
    new newplayersid = MySQLCheckAccount(newplayersname);
    if (newplayersid != 0)
    {
        return newplayersid;
    }
    return 0;
}
I don't know other details to give, if necessary, write and you'll all the necessary details. Thank you.


Re: Register Problem. - Tenshi - 15.01.2013

Wrong area, this is for "server support" not scripting.
Try posting here for better results:
SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help @ http://forum.sa-mp.com/forumdisplay.php?f=12


Re: Register Problem. - BiZzZy - 16.01.2013

Actually i need help with MySQL not scripting.


Re: Register Problem. - 3ventic - 17.01.2013

Do you have a MySQL database, an account that can access it, has the MySQL been told that the script may access the account and have you placed the information in your script?