Thread: Chat Logger SQL
View Single Post
Min2liz
AlliedModders Donor
Join Date: Feb 2008
Location: Street
Old 04-14-2008 , 10:37   Re: Chat Logger SQL
Reply With Quote #4

What need to add that dont insert into MySQL for example /cp /tp and so on. I trying

Quote:
if (message != '/cp' && message != '/tp') {
format(query,1000,"INSERT into %s (name,authid,ip,alive,team,date,time,message, cmd) values ('%s','%s','%s','%d','%s','%s','%s','%s','%s' )",table,name,authid,ip,is_user_alive(id),TEA MNAME[_:team],datestr,timestr,message,cmd)
}
and get errors like:
Error: Invalid character constant on line 99
Error: Undefined symbol "cp" on line 99
Error: Undefined symbol "tp" on line 99
Warning: Loose indentation on line 98

I'm totaly newbie on amxx scripting :/
Min2liz is offline