Hi.
Just wanted to ask - which way is better to code a mini log system that saves the command's admin used.
A: A mini log system that works by its own and updates the sql constantly (everytime a gm uses a command).
B: A mini log system that saves the data through the saveToDB() method in MapleCharacter
With option A i can update only the log instead of loading all player info all the time which can cause problems. But in the other hand maybe this is too much and it will be better to wait till the function saveToDB() will work and save it.
Please don't flame and such.. I'm trying to learn some basics and to improve my codes.
Just wanted to ask - which way is better to code a mini log system that saves the command's admin used.
A: A mini log system that works by its own and updates the sql constantly (everytime a gm uses a command).
B: A mini log system that saves the data through the saveToDB() method in MapleCharacter
With option A i can update only the log instead of loading all player info all the time which can cause problems. But in the other hand maybe this is too much and it will be better to wait till the function saveToDB() will work and save it.
Please don't flame and such.. I'm trying to learn some basics and to improve my codes.
Last edited: