How to damn do this lol
#1

So i made a table in MySQL which will log server stats like total accounts and shit. I tested with the "TotalAccounts" row first:

pawn Код:
new stats[200];
    format(stats, sizeof(stats), "UPDATE `ServerStats` SET `TotalAccounts` ++");
 mysql_query(stats);
This is the code when someone registers, but in mysql_log.txt i get a SQL syntax error, lol.

My question is: How to increase the "TotalAccounts" row by 1?

The "TotalAccounts" is made in "integrer".
Reply


Messages In This Thread
How to damn do this lol - by Face9000 - 08.01.2014, 20:42
Re: How to damn do this lol - by Vince - 08.01.2014, 20:46
Re: How to damn do this lol - by Face9000 - 08.01.2014, 20:53
Re: How to damn do this lol - by sammp - 08.01.2014, 21:18
Re: How to damn do this lol - by Face9000 - 08.01.2014, 21:48

Forum Jump:


Users browsing this thread: 2 Guest(s)