09.01.2011, 07:11
Perform a SELECT query with the user credentials:
You should be using threaded queries.
pawn Код:
format(string,sizeof(string),"SELECT NULL FROM Users WHERE Name = '%s' AND Password = '%s'",escname, escpass);
mysql_query(string);
if(!mysql_num_rows()) return SendClientMessage(playerid, COLOR_RED, "[ACCOUNT] Incorrect password!");