05.06.2011, 09:58
Код:
ExistingAccount(playerid) //Check to see if the account is already registered. { new query[124]; format(query, sizeof(query), "SELECT * FROM accts WHERE username = '%s'", getName(playerid)); mysql_query(query); mysql_store_result(); if(mysql_num_rows() > 0) { mysql_free_result(); return 1; } mysql_free_result(); return 0; }