03.06.2018, 16:47
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:
Any problem in this code?
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);
}