Raised This Month: $32 Target: $400
 8% 

KeyValues + If Statements for Keys


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Riotline
AlliedModders Donor
Join Date: Oct 2015
Location: Half Life 3
Old 04-06-2017 , 08:15   KeyValues + If Statements for Keys
Reply With Quote #1

I am having a problem to create an if statement which allows me to get the sub-key name from the key.

https://pastebin.com/fsHN1AKw

But from my code I cannot compare anything to another thing yet because I haven't had the chance actually create the variable for the sub-key so I cannot compare it.

Any Ideas?

Edit:
https://pastebin.com/FrMbhDNm
This is the current code to retrieve parts of the config
__________________

Last edited by Riotline; 04-06-2017 at 08:28.
Riotline is offline
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 04-06-2017 , 10:23   Re: KeyValues + If Statements for Keys
Reply With Quote #2

Well, i can't really understand what are you looking for but i suggest to use DO and WHILE for lopping though keyvalues and then check if it can goto nextkey and if not just break the loop, it's more efficient and will not fuck up easily
__________________

Last edited by ambn; 04-06-2017 at 10:23.
ambn is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode