Advertisement
Guest User

Untitled

a guest
Dec 21st, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. format(szQuery, sizeof(szQuery), "SELECT * FROM `users` WHERE `Clan` = '%d'", clanid);
  2. new Cache: result = mysql_query(SQL, szQuery);
  3. new idwtf[180];
  4. for(new i, j = cache_get_row_count (); i < j; i++)
  5. {
  6. cache_get_field_content(i, "id", idwtf);
  7. membrii++;
  8. new szQuery2[256];
  9. mysql_format(SQL, szQuery2, sizeof(szQuery2), "UPDATE `users` SET `Clan`='0', `ClanRank`='0', `ClanDays`='0', `ClanWarns`='0' WHERE `ID`='%d'", strval(idwtf));
  10. mysql_tquery(SQL,szQuery2, "", "");
  11. }
  12. cache_delete(result);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement