Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mysql errors
#13
I have resolved the issue by adding the following:

Code:
Set RS = New ADODB.Recordset
RS.Open "SELECT count(*) FROM shops;", Conn_Server, adOpenStatic, adLockReadOnly
RS.MoveFirst

ShopCount = RS(0)

RS.Close

then instead of

Code:
For I = 1 To MAX_SHOPS

I used

Code:
For I = 1 To ShopCount

This way it seems to try to only load what exists already in the database. Of course I modified Shops, NPCs, Maps et cetera individually, but it is the same code with just a minor adjustment to the query.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)