daily pastebin goal
3%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. stock SQL_SetInt(dbRowID, const TABLE[], const COLUMN[], INTEGER, &upd_val = RANDOM_NUMBER)
  2. {
  3.     SQL_Checkdb(TABLE, COLUMN, "int(20) NOT NULL default '0'");
  4.  
  5.     mysql_query_format("UPDATE `"#SQL_PREFIX"%s` SET `%s` = '%i' WHERE `row_id` = '%i' LIMIT 1;", TABLE, COLUMN, INTEGER, dbRowID);
  6.  
  7.     if(upd_val != RANDOM_NUMBER)    upd_val = RANDOM_NUMBER;
  8.  
  9.     return 1;
  10. }
RAW Paste Data
Top