Read KeyValues File
hey guys,
im working on a plugin and i need to read the items.txt file from Zephyrus's store plugin i tried looking at the function he made to read the file but i dont understand anything that is going on on there... here is the function https://pastebin.com/gZqHFFTS can someone explain how the function works or if someone has more simpler code that does the same (go trough all the keys and sections in the file) and can send it here it would be amazing! thanks for all the replys. EDIT : im doing other idea |
Re: Read KeyValues File
|
Re: Read KeyValues File
first, thanks for replying really appreciate it.
second, I know how to use the kv class the problem is that I'm not succeeding in writing code that dose what I want (read all the file) and that's why I asked help on here. |
Re: Read KeyValues File
Yeah, well maybe show me what you've tried and I'll tell you what you did wrong. Reading code that you don't understand will not help you, it'll just confuse your brain even more and you'll get the idea of this being very difficult and give up.
It's important to start with the basics, I mean, you can't grow I tree without roots. |
Re: Read KeyValues File
Code:
#pragma semicolon 1 |
Re: Read KeyValues File
Nope, it only reads the sections, and the FIRST sub keys.
PHP Code:
GoToFirstSubKey will get you deeper in the file. |
Re: Read KeyValues File
yes I know that... do you think I'm new to this? well I'm not, the only problem is that I can't keep doing GotoFirstKey every time I go to next, i'm using this logic if you saw my code...
|
Re: Read KeyValues File
"do you think I'm new to this?", Okay, then you clearly should see what's wrong and you would probably be able to solve the issue yourself.
Drop the attitude, I'm telling you what's wrong, and you're not using this logic. Anyhow, if your ass 's too lazy, get rid of the sub-sub-keys. I don't see why you would do that. |
Re: Read KeyValues File
first i didnt want to offend and im sorry if i did, i wish i could remove the sub sub key but this file is an user input and they can add as much as they want sub sections sence the store plugin allows it,
also if ur doing GetSectionName at the begging it wont go to the first subkey like you said and i am using your logic but no all they time im using it only when Code:
kv.NodesInStack == 1 |
Re: Read KeyValues File
PHP Code:
|
All times are GMT -4. The time now is 10:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.