Posts: 551
Threads: 122
Joined: Nov 2009
Reputation:
0
What's the best way I can store commands that are loaded from a mysql database. Currently it's querying the DB when the command is processed. In the past couple days I've realised how inefficient this is. So, what's the best way to go about storing these when the server loads. I'm thinking an array, but I'm unsure how to do it.
Posts: 551
Threads: 122
Joined: Nov 2009
Reputation:
0
That's what I meant, I coded the commands into my GM and use mysql to store command levels. I make a query on every command to check the level, I noticed it used a high memory load when 3 - 4 people are using these commands at once. So, yes I need a way to store the command level.
Posts: 193
Threads: 27
Joined: May 2011
Reputation:
0
yes, i recommended you YCMD too. I have used it in my gamemode and it's really good, combination with sscanf is the best