Posts: 403
Threads: 10
Joined: Oct 2013
Posts: 1,003
Threads: 31
Joined: Jul 2013
Reputation:
0
Well, don't create all the 220 in 1 query, or I think pawncc will give some off parameters limit thing error. But it can be fixed using strcat.
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
You should create those fields you need to save/load for a player. Not everything from the enum, I suppose some indexes are just for checking things in-game and they do not need to be saved.
Posts: 403
Threads: 10
Joined: Oct 2013
Quote:
Originally Posted by Sublime
Well, don't create all the 220 in 1 query, or I think pawncc will give some off parameters limit thing error. But it can be fixed using strcat.
|
yea, it can be done with both ways.
Posts: 1,003
Threads: 31
Joined: Jul 2013
Reputation:
0
Just try using db_query and create 20 tables, and check if there is any errors. Increase the table creation by 10 when there isn't an error.
Posts: 843
Threads: 61
Joined: Feb 2013
Reputation:
0
I wont save all of the indexes but I have to save most of them.
So manually would mean that I will just have to add fields to the database using Browser so I wont need to check each time the server starts if the table is created or not?
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
That's right! The main key is not to execute a query everytime the server starts to check if the table exists and if not, to create it. It's kind of pointless, in my opinion.
Of course when I meant manually, I did not mean that you need to create each field and its type manually but execute a query through the 'Execute SQL' tab with CREATE TABLE clause.
Posts: 843
Threads: 61
Joined: Feb 2013
Reputation:
0
I will try to do something with the Browser. I've never worked in it before so I hope everything will be all right. Thanks Konstantinos.
EDIT: one more question. I found Execute Query in the browser, do I have to enter there same thing I would enter in pawno? I mean are the functions same for use in pawno and SQLite Database Browser?