Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. stock IsAFexistAccount(Name[])
  2. {
  3.     new query[128], name[24];
  4.     mysql_real_escape_string(Name, name);
  5.     format(query, sizeof(query), "SELECT `ID` FROM `accounts` WHERE `NickName` = '%s' LIMIT 1", name);
  6.     zapros(query);
  7.     mysql_store_result();
  8.     new accounts = mysql_num_rows();
  9.     mysql_free_result();
  10.     if(accounts == 1) return true;
  11.     return false;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement