daily pastebin goal
15%
SHARE
TWEET

Untitled

a guest Aug 13th, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     new Query[320], pName[MAX_PLAYER_NAME];
  2.     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  3.     mysql_real_escape_string(pName, pName);
  4.     format(Query, sizeof Query, "SELECT * FROM `users` WHERE `Name` = '%s' LIMIT 1", pName);
  5.     mysql_query(Query);
  6.     mysql_store_result();
  7.     if(mysql_num_rows())
  8.     {
  9.         SendClientMessage(playerid, COLOR_ORANGE, "An account already exists under that name! Use \"/login\" to log in!");
  10.         mysql_free_result();
  11.         return 1;
  12.     }
RAW Paste Data
Top