I'v beem working on pc.cpp and I want to store death log into db
when I try
if (SQL_ERROR == Sql_Query(sql_handle, "Insert into death_log(char_id,killer_type,killer_id,map,time,lasthit) values(%d,'%s',%d,%d,'%s',%d)",150000,"BL_PC",150004,1,"20031020",1))
Sql_ShowDebug(sql_handle);
Error C2065 'sql_handle': identifier not defined map-server D:\rathena\src\map\pc.cpp 8498
how setup db connection from pc.cpp ,skills.cpp ,stats.cpp etc and execute simple querys? "Insert into 'test'(testint) values (1)"