Register Problem.
#1

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

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

Actually i need help with MySQL not scripting.
Reply
#4

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)