15.01.2013, 18:28
Hello,
I've put the gamemode on host, and when you connect to the server, type the register password, and nothing.
MySQLCreateAccount :
I don't know other details to give, if necessary, write and you'll all the necessary details. Thank you.
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;
}