I need to check is there a info for this in db:
Code:
SQL_PrepareQuery(sql,"SELECT address FROM `amx_serverinfo` WHERE address ='%s:%s'", szIP,szPort)
and if not, executed this query:
Code:
SQL_QueryAndIgnore(sql, "INSERT INTO `amx_serverinfo` (timestamp,hostname,address,gametype,rcon,amxban_version,amxban_motd,motd_delay,amxban_menu, reasons,timezone_fixx) VALUES('%s','%d', '%s:%s', 'cstrike', NULL, '1.6', NULL, '10', '1', NULL, '0')", get_systime(), szHostName, szIP,szPort)
how to do that?