Author Topic: Error.. error.. error..  (Read 6149 times)

Shadow.

  • Tester
  • Full Member
  • ****
  • Posts: 144
  • Karma: +16/-35
    • View Profile
Re: Error.. error.. error..
« Reply #15 on: July 04, 2012, 10:30:56 am »
Well simple, I moved the code by the beginning of the callback and changed all

Code: [Select]
sqlite_column_data(sqlite_query(database,"SELECT BLAH FROM LAG WHERE NAME='"+player.Name.toupper()"' "),0);
sqlite_column_data(sqlite_query(database,"SELECT BLAH1 FROM LAG WHERE NAME='"+player.Name.toupper()"' "),0);
sqlite_column_data(sqlite_query(database,"SELECT BLAH2 FROM LAG WHERE NAME='"+player.Name.toupper()"' "),0);

to

Code: [Select]
local q = sqlite_query(database,SELECT BLAH, BLAH1, BLAH2 FROM LAG WHERE NAME='"+player.Name.toupper()+"' LIMIT 1");

local blah1 = sqlite_column_data( q, 0 );
local blah2 = sqlite_column_data( q, 1 );
local blah3 = sqlite_column_data( q, 2 );

:)

 

© Liberty Unleashed Team.