MySQL ban
#2

You cannot use the WHERE clause in an INSERT statement.

Either use this:
pawn Код:
format(mysqlquery,sizeof(mysqlquery),"INSERT INTO `Users` (`pBanned`,`pBannedReason`,`pBannedBy`) VALUES ('%s','%s','%s')",bvar,reason,PlayerName(playerid));
mysql_query(mysqlquery);
Or use the UPDATE statement.
Reply


Messages In This Thread
MySQL ban - by Kitten - 19.09.2012, 08:35
Re: MySQL ban - by Emmet_ - 19.09.2012, 08:44

Forum Jump:


Users browsing this thread: 1 Guest(s)