its obviously going into the else statement
Code:
if (equal(player_steamid,"STEAM_ID_LAN")) {
else {
so thus you are then trying to send a blank query to MySQL. Put it in the if statement.
And you have
Code:
new query[1024]
format(query,1024,"SELECT * FROM arctic_bans WHERE ip='%s'", player_ip)
should be
Code:
format(query,1023,"SELECT * FROM arctic_bans WHERE ip='%s'", player_ip)
and also 1024 characters long might be a bit too long for this. I would use 64:
Code:
new query[64]
format(query,63,"SELECT * FROM arctic_bans WHERE ip='%s'", player_ip)