Re: Coding a .txt GM system.
1st. just edit the ctl level needed for the command in accesdata.ini
2 google how to parse a text file in c++ or read how the other files are read from the source, this is the most basic stuff in c++ and any coding language...
Re: Coding a .txt GM system.
Its.... useless. :D
Just simple add new CTL code into the list for example 6 why not..
Than in the accessdata use this value, CTL 6 dont will have GM logo or anything else, just if you add it on the clientside so its already coded, you just need new value and modifications on the accessdata.
Why is it enough?
Because if you put for example /makeitem - 6 in the accessdata, so users with ctlcode 6 can create items, and if your ctl code higher so for example 32 you can use the command too. :)
Re: Coding a .txt GM system.
You guys keep thinking about other solutions to my objective and can't seem to understand that I do these things to LEARN new stuff about c++ and take my programming skills to the next level.
I asked a question about working with .txt files in source, if anyone knows and can guide me on this one, thank you.
Re: Coding a .txt GM system.
Than learn the stuff than start to create something.
Its useless to ask daily something shit, which is already coded in your files you just want to recode it. Than recode it, but do it alone.
The database GM system is the feature not the TXT who the fck want to read the privileged users from TXT file when you just simple run a query and done you get back TRUE or FALSE return value, and if return value true the user can access to the commands or anything else user cant...
Why you want to ruin your life? Nobody will code it for you, and what kind of guide you want?
Read from txt file with c++? The GS read just 40 txt files now, so its not enough for you?, okey, than write into the google read data from file with c++ or raid data from txt using array c++ because You want to read it in array "1stuser" "2nduser" "3rd" ...
Anyways You make me sad or mad with this questions, because you dont know programming and you want to code something before learning any code language.
Its like repair an airplain for you at the moment... but after you learn it than you can make what you want, but not now.
Learn the basic prgramming things, than start to code this things. Now you can just cause epic bugs in the serverfile, and if any user will be on it, it will be freeze or crash or the players can gain more access etc...
Its totally not cool.
AND!
We still dont understand, WHY! you want to create a whole new system, if this system already coded and you just need to use numbers....
Its like creating new wheels on the car, because why not...
Re: Coding a .txt GM system.
Let me google that for you
or just use while and sscanf_s, std::string class functions or anything you want, but you cant code something unless you how the actual code works.