March 29, 2024, 02:05:34 pm

Author Topic: Can someone please help me?  (Read 1915 times)

0 Members and 1 Guest are viewing this topic.

Armadyl

  • Newbie
  • *
  • Posts: 10
  • Single Guy
    • View Profile
Can someone please help me?
« 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:



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:
Quote
   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 and told me it's working, but it's infected with W32/Sality.gen ...............

Thanks in advance
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor


Zeke

  • Crazy Man
  • *****
  • Posts: 935
  • Country: bg
  • VC:MP and LU beta tester
    • View Profile
Re: Can someone please help me?
« Reply #1 on: July 31, 2012, 02:20:52 pm »
Load the modules first before trying to connect the Database.

Something like this

Code: [Select]
function onScriptLoad()
{
      LoadModule("sq_lite");
      db <- ConnectSQL( "DataBase.db" );
}
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

Quote
InstallHook(0x405AC0,(DWORD)CantFindFuckingAnim,0x405A95,
CantFindFuckingAnim_HookJmpCode,sizeof(CantFindFuckingAnim_HookJmpCode));
-------------------------------------------------
Quote
[00:41:12] <~Murdock> actually just transfering files
[00:41:16] <~Murdock> sounds, clientscripts etc
[00:42:05] <heekzs> what transfer method you uses
[00:43:03] <~Murdock> speed of light

Armadyl

  • Newbie
  • *
  • Posts: 10
  • Single Guy
    • View Profile
Re: Can someone please help me?
« Reply #2 on: July 31, 2012, 03:33:31 pm »
Load the modules first before trying to connect the Database.

Something like this

Code: [Select]
function onScriptLoad()
{
      LoadModule("sq_lite");
      db <- ConnectSQL( "DataBase.db" );
}
Aw my god thanks a ton bro, you want a free blowjob turn?  O0
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor


Metalord

  • Crazy Man
  • *****
  • Posts: 537
  • Country: ar
    • View Profile
Re: Can someone please help me?
« Reply #3 on: July 31, 2012, 03:51:59 pm »
lol
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor


Armadyl

  • Newbie
  • *
  • Posts: 10
  • Single Guy
    • View Profile
Re: Can someone please help me?
« Reply #4 on: July 31, 2012, 04:11:29 pm »
Does anyone know what's da problem here?


Quote
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?)
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor


XGamer

  • Crazy Man
  • *****
  • Posts: 1637
  • Country: jo
    • View Profile
Re: Can someone please help me?
« Reply #5 on: July 31, 2012, 04:38:07 pm »
HAHA METALORD FUNNY SIGNATURE. xD xD

JAH HAHA.
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor




Playing VC:MP since September 2008.

stormeus

  • Vice Underdog
  • Crazy Man
  • *
  • *
  • Posts: 1755
  • Country: us
  • VC:MP Developer
    • View Profile
    • GTA VICE CITY Respective owner
Re: Can someone please help me?
« Reply #6 on: July 31, 2012, 07:49:01 pm »
Change
Code: [Select]
q = GetSQLNextRow( q );
To
Code: [Select]
GetSQLNextRow( q );
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

<krystianoo> stormeus do good job
<krystianoo> with recent update
<krystianoo> if not agree; jeb yourself in head
<Avenger> yesterday you said death to stormeus
<karan> double standard krystianoo
<karan> he called him fake prophet too
<krystianoo> sure fake prophet
<krystianoo> but with recent updates real