cieciwa
Joined: 09 Aug 2005 Posts: 33 Location: Cracov, Poland
|
Posted: Wed Dec 28, 2005 10:20 Post subject: SQLExecDirect don't work ? |
|
|
Hi, I try to make my own module, but is something strange which I can't understand ...
OnModuleLoad is:
Code: |
#include "__default"
#include "aps_include"
void main()
{
// initialize SQL
SQLInit();
// connected to database ?
SQLExecDirect("select * from world_time;");
if (SQLFetch() != SQL_SUCCESS)
if (DEBUG)
PrintString("[DEBUG] Not connected.");
|
table "world_time is created.
no errors when server start,
but in nwn logs are:
[Wed Dec 28 09:07:22] Loading Module: EXS00
[DEBUG] Not connected.
what's wrong ?
I don't understund this ... |
|