 |
|
Senior Member
|

01-22-2007
, 03:58
Re: Register in the SQL if not already there?
|
#7
|
Quote:
Originally Posted by MaximusBrood
An example:
Code:
new query[256], authid[32]
get_user_authid(id,authid,31)
format( query, 255, "INSERT INTO users (steamid, exp, level, kills) VALUES('%s','0','1','0') ON DUPLICATE KEY UPDATE exp=exp+%d, level=%d, kills=kills+%d", authid, exp, level, kills)
|
isn't exp the current experience level ? if so, you are adding the current level to the database one...(on duplicate)
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
|
|
|
|