when i put LoadLoc(); on onScriptLoad(), it crash the server, but i remove it, it does not crash
here LoadLoc
Loc <- {}
function LoadLoc()
{
db <- sqlite_open( "LU.db" );
local q = sqlite_query( db, "SELECT * FROM loc" );
while ( sqlite_column_data( q, 0 ) != null )
{
Loc[ sqlite_column_data( q, 0 ) ] <- {}
Loc[ sqlite_column_data( q, 0 ) ].Pos <- ConvertStringToPos( sqlite_column_data( q, 1 ) );
Loc[ sqlite_column_data( q, 0 ) ].Creator <- sqlite_column_data( q, 2 );
Loc[ sqlite_column_data( q, 0 ) ].Date <- sqlite_column_data( q, 3 );
sqlite_next_row( q );
}
sqlite_free( q );
print("\r[Loc] " + Loc.len() + " loaded." );
}
i also loaded lu_sqlite on onScriptLoad()