19.02.2018, 00:01
Hello, i have made a kick system and if you kick the player it should display on the database, but there's a problem.
Here is the code:
There was no errors when i compiled it, but it just doesn't insert the data into the "kicks" table.
Here is the code:
PHP код:
mysql_format(Database, DB_Query, sizeof(DB_Query), "INSERT INTO `kicks` (`Name`, `KickedBy`, `Reason`, `IpAddress`)\
VALUES (`%s`, `%s`, `%s`, `%s`)", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason, playerip);
mysql_tquery(Database, DB_Query);