Quote:
Originally Posted by jimaway
what did you test it with? the code you posted wont probably even compile
|
it is compiling.
i am using this function to ban fake ppl.
Code:
public test(id)
{
new string[360];
format(string, charsmax(string), "INSERT INTO `bans` (`PlayerName`, `SteamID`, `UnbanTime`) VALUES ('Batman1', 'STEAMID:0:111', '3')"),
SQL_ThreadQuery(Handler, "IgnoreHandle", string);
format(string, charsmax(string), "INSERT INTO `bans` (`PlayerName`, `SteamID`, `UnbanTime`) VALUES ('Batman2', 'STEAMID:0:222', '2')"),
SQL_ThreadQuery(Handler, "IgnoreHandle", string);
format(string, charsmax(string), "INSERT INTO `bans` (`PlayerName`, `SteamID`, `UnbanTime`) VALUES ('Batman3', 'STEAMID:0:333', '3')"),
SQL_ThreadQuery(Handler, "IgnoreHandle", string);
format(string, charsmax(string), "INSERT INTO `bans` (`PlayerName`, `SteamID`, `UnbanTime`) VALUES ('Batman5', 'STEAMID:0:555', '1')"),
SQL_ThreadQuery(Handler, "IgnoreHandle", string);
format(string, charsmax(string), "INSERT INTO `bans` (`PlayerName`, `SteamID`, `UnbanTime`) VALUES ('Batman4', 'STEAMID:0:444', '525600')"),
SQL_ThreadQuery(Handler, "IgnoreHandle", string);
return PLUGIN_HANDLED;
}
and then they get unban in 1, 2, 3 minutes, is working but like i said, if player 3 is unbanned the mssage wont show up, will show only ASC.