04.06.2017, 14:01
because you not inserting player into db because of this code :
replace it with :
and where you check password is real? because your checking(if you gave full) will log in player if he only exits in database
Код HTML:
strcat(Query,"INSERT INTO `users` (Username,Password,IP) VALUES ('%s', sha1('%s'),'%s')"); format(Query,sizeof(Query),Query,PlayerName(playerid),password,IP);
Код HTML:
format(Query, sizeof(Query), "INSERT INTO users (Username, Password, IP) VALUES ('%s', 'sha1(%s)', '%s')", PlayerName(playerid), password, IP);