hey, ich habe das problem das die kicks in mysql nicht abgespeichert werden. mein code sieht wie gefolgt aus:
Code
new ip[32];
GetPlayerIp(pID,ip,sizeof(ip));
new query[512];
mysql_format(mysql, query, sizeof(query), "INSERT INTO `log_kicks` (`name`, `kickedby`, `reason`, `timestamp`, `ip`)
VALUES ('%i', '%i', '%e', '%i', '%e')", GetPVarInt(pID, "accountid"), GetPVarInt(playerid, "accountid"), reason, gettime(), ip);
mysql_tquery(mysql, query);
Code
CREATE TABLE `log_kicks` (
`id` int(11) NOT NULL,
`name` int(11) NOT NULL,
`kickedby` int(11) NOT NULL,
`reason` text NOT NULL,
`timestamp` int(11) NOT NULL,
`ip` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
ich bekomme keine errors/warnings.