SQL Help
#1

Well, I am trying to make an ban system but whatever SQL always occurs errors cos I'm a noobie.

Gimme a hand.
Errors:
Код:
[17:59:41] [ERROR] CMySQLQuery::Execute - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELCET * FROM `bans` WHERE `ip` = '127.0.0.1'' at line 1
[17:59:41] [WARNING] cache_get_row_count - no active cache
[17:59:41] [WARNING] CMySQLHandle::DeleteSavedResult - invalid result id ('0')
Script:
Код:
new sql123[500], Cache:result;
	mysql_format(sqldb, sql123, sizeof sql123, "SELCET * FROM `bans` WHERE `ip` = '%s'", plrIP);
 	result = mysql_query(sqldb, sql123);
	if(cache_num_rows())
	{
	    SendClientMessage(playerid, -1, "works");
	}
	cache_delete(result);
Reply


Messages In This Thread
SQL Help - by fatlirmorina - 24.05.2017, 16:16
Re: SQL Help - by Banditul18 - 24.05.2017, 16:22
Re: SQL Help - by fatlirmorina - 24.05.2017, 16:29
Re: SQL Help - by fatlirmorina - 24.05.2017, 17:40
Re: SQL Help - by Banditul18 - 24.05.2017, 17:53

Forum Jump:


Users browsing this thread: 1 Guest(s)