MySQL ban
#1

Fixed!
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)