1
Off Topic / Re: [TZ]Nadeem vs ULK
« on: August 17, 2012, 12:02:24 am »LOL
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
function LoadPickups()
{
local q = QuerySQL( db, "SELECT Pos FROM Properties WHERE rowid LIKE '%'" );
while ( GetSQLColumnData( q, 0 ) )
{
local SplitPos = split( GetSQLColumnData( q, 0 ), " " );
local x = SplitPos[ 0 ], y = SplitPos[ 1 ], z = SplitPos[ 2 ];
CreatePickup( 407, Vector( x.tofloat(), y.tofloat(), z.tofloat() ) );
q = GetSQLNextRow( q );
}
}
Load the modules first before trying to connect the Database.Aw my god thanks a ton bro, you want a free blowjob turn?
Something like thisCode: [Select]function onScriptLoad()
{
LoadModule("sq_lite");
db <- ConnectSQL( "DataBase.db" );
}
print( "Cars System loaded" );
//Connect the DataBase.
db <- ConnectSQL( "DataBase.db" );
print( "Connected SQL Database." );
// Load Modules
LoadModule( "sq_hashing" );
LoadModule( "sq_ini" );
LoadModule( "sq_lite" );
dofile( "Main.nut" ); //Cars