Recent Kicks and Bans.
#6

I cannot comprehend why people think that MySQL and INI are substitutes and cant work as a combination while there is no logical reason they can't. If one part of your systems uses MySQL and another doesn't it is alright and won't destroy your gamemode magically.

Matite most likely uses MySQL(as a comparison to other available implementations of the SQL language integrated into PAWN such as SQLite and others). A statement that would be executed following a kick or ban would probably contain the following:

pawn Код:
mysql_format(db, query, sizeof query, "INSERT into `bans` (SQLId, PlayerName, IP, reason, Admin, AdminSQLId, PlayerHash, AdminHash) VALUES (%d, '%s', '%s', '%s', '%s', %d)", PlayerSQL(banned), PlayerName(banned), PlayerIP(banned), PlayerName(playerid), PlayerSQL(playerid)), PlayerHash(banned), PlayerHash(playerid));
The above would represent banned as the player being banned while the playerid holds the player executing the ban(or a kick). Note that MySQL isn't the only option for this, this could be done in INI but I would for obvious reasons advise against it.
Reply


Messages In This Thread
Recent Kicks and Bans. - by suni - 28.10.2015, 00:44
Re: Recent Kicks and Bans. - by Dusan01 - 28.10.2015, 08:39
Re: Recent Kicks and Bans. - by Matite - 28.10.2015, 11:03
Re: Recent Kicks and Bans. - by suni - 28.10.2015, 20:39
Re: Recent Kicks and Bans. - by suni - 03.11.2015, 22:14
Re: Recent Kicks and Bans. - by Abagail - 04.11.2015, 01:03

Forum Jump:


Users browsing this thread: 1 Guest(s)