24.12.2016, 14:44
Hello,today i was trying to create a command /banlist for my server,that will get all the names from the table "bans" and row "name" and will show me banned players.I dont know much on mysql and i need your help....
I will show you the line i use to store bans on database,maybe that will make it easier :
Thank you!
I will show you the line i use to store bans on database,maybe that will make it easier :
Код:
format(q, sizeof(q), "INSERT INTO bans (id, name, reason, ban_time, issue_time, expiry_time, admin, ip) VALUES ('', '%s', '%s', %d, %d, %d, '%s', '%s')", namegive, reason, time, curtime, expire, name, ip); mysql_query(q, THREAD_INSERT_BAN);