Raised This Month: $51 Target: $400
 12% 

Solved About cvar / parse


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wilianmaique
BANNED
Join Date: Nov 2016
Old 07-16-2018 , 17:00   About cvar / parse
Reply With Quote #1

Guys, I wanted to know how to block the following maps that are in a cvar, using loop.

Ex: my_cvar "aim_ fy_ cs_ de_"

How do I loop to block maps that have these tags using parse or something else?


sorry for my bad english.

Last edited by wilianmaique; 07-16-2018 at 22:45.
wilianmaique is offline
Send a message via Skype™ to wilianmaique
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-16-2018 , 17:16   Re: About cvar / parse
Reply With Quote #2

Block what?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Old 07-16-2018, 17:17
Ghosted
This message has been deleted by Ghosted. Reason: Nah
wilianmaique
BANNED
Join Date: Nov 2016
Old 07-16-2018 , 18:29   Re: About cvar / parse
Reply With Quote #3

I want to check if the map that is in the cvar is equal to the initials of fy_, _aim ....
will perform X function


sorry for my bad english.
wilianmaique is offline
Send a message via Skype™ to wilianmaique
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-16-2018 , 19:26   Re: About cvar / parse
Reply With Quote #4

But, you can't add multiple words in a single cvar, can you?
__________________
edon1337 is offline
wilianmaique
BANNED
Join Date: Nov 2016
Old 07-16-2018 , 20:19   Re: About cvar / parse
Reply With Quote #5

Quote:
Originally Posted by edon1337 View Post
But, you can't add multiple words in a single cvar, can you?
Can use with spaces, I believe that the verification method would be with PARSE, but I do not know how to proceed.
wilianmaique is offline
Send a message via Skype™ to wilianmaique
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-16-2018 , 20:44   Re: About cvar / parse
Reply With Quote #6

You can use a while() loop and inside it extract the values using strtok().
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
wilianmaique
BANNED
Join Date: Nov 2016
Old 07-16-2018 , 22:45   Re: About cvar / parse
Reply With Quote #7

Ok, thanks for reply.
wilianmaique is offline
Send a message via Skype™ to wilianmaique
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 15:25.


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