Vice Underdogs
Scripting => Scripting Support => Topic started by: Armadyl on July 31, 2012, 12:29:31 pm
-
Well, I'm scripting a server with someone (FBS based) and everytime I try to run the server I get this error:
(https://viceunderdogs.com/proxy.php?request=http%3A%2F%2Fgyazo.com%2Fa4144ca6a7585d0875c0c199cb1eadc0.png%3F1343736815&hash=8e5c1ed638c586c4aab244350c08aa3142cf3e38)
I tried it on a Windows XP Service Pack 2 , Windows Vista Service Pack 1 & a Windows 7 Ultimate 64-bit . Always same screen.
Line 31 is: 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
He sent me this VCMP Server.exe (http://www.4shared.com/file/T93flhEA/VCMP_Server.html) and told me it's working, but it's infected with W32/Sality.gen ...............
Thanks in advance
-
Load the modules first before trying to connect the Database.
Something like this
function onScriptLoad()
{
LoadModule("sq_lite");
db <- ConnectSQL( "DataBase.db" );
}
-
Load the modules first before trying to connect the Database.
Something like this
function onScriptLoad()
{
LoadModule("sq_lite");
db <- ConnectSQL( "DataBase.db" );
}
Aw my god thanks a ton bro, you want a free blowjob turn? O0
-
lol
-
Does anyone know what's da problem here?
(https://viceunderdogs.com/proxy.php?request=http%3A%2F%2Fgyazo.com%2Fd220ad15a2e4a8d2fd478fcbd73db4e4.png%3F1343750122&hash=712373fa83844e10f9b3f7bed970c4896c20b451)
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 );
}
}
(Sorry, the main scripter went on vacation. I was going to do the 'boring' and 'simple' part, but I cannot even start a decent server... I'd really appreciate any help. When I add an ; after GetSQLColumnData , I lagg like hell, there is no problem, but ppl cannot join this time. I have an old PC, may that be the cause?)
-
HAHA METALORD FUNNY SIGNATURE. xD xD
JAH HAHA.
-
Change
q = GetSQLNextRow( q );
To
GetSQLNextRow( q );