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

Remove the line from the file


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mahmoodi.1313
Senior Member
Join Date: Aug 2014
Location: Steamboat Springs, USA
Old 06-28-2015 , 05:07   Remove the line from the file
Reply With Quote #1

Hello !
How remove a line from a file?

Example :
PHP Code:
removeip %swriteip 
PHP Code:
removeid %swriteid 
Thanks !
mahmoodi.1313 is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 06-28-2015 , 08:12   Re: Remove the line from the file
Reply With Quote #2

Quote:
Originally Posted by mahmoodi.1313 View Post
Hello !
How remove a line from a file?
Example :
PHP Code:
removeip %swriteip 
PHP Code:
removeid %swriteid 
Thanks !
You delete it or comment it out, but your example doesn't make any sense. Attach the plugin then tell us what line you want removed.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
mahmoodi.1313
Senior Member
Join Date: Aug 2014
Location: Steamboat Springs, USA
Old 06-28-2015 , 15:27   Re: Remove the line from the file
Reply With Quote #3

I do not want to remove the line from the plugin.
I want remove a line from a file like mapcycle.txt using the plugin ingame.
Example: ( admincmd.sma )
PHP Code:
    {
        
server_cmd("removeip ^"%s^";writeip"arg)
        
console_print(id"[AMXX] %L"id"IP_REMOVED"arg)
    } else {
        
server_cmd("removeid %s;writeid"arg)
        
console_print(id"[AMXX] %L"id"AUTHID_REMOVED"arg)
    } 
Thanks !

Last edited by mahmoodi.1313; 06-28-2015 at 15:28.
mahmoodi.1313 is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 06-28-2015 , 15:30   Re: Remove the line from the file
Reply With Quote #4

That is not an example of what you are looking for.
__________________
ddhoward is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-28-2015 , 16:12   Re: Remove the line from the file
Reply With Quote #5

How is this related to the IP ban list? The IP ban list is managed by HLDS, not AMX Mod X. There are several topics that ask the same question that you are asking.
__________________
fysiks is offline
mahmoodi.1313
Senior Member
Join Date: Aug 2014
Location: Steamboat Springs, USA
Old 06-28-2015 , 18:04   Re: Remove the line from the file
Reply With Quote #6

I didn't find the topic .
Another command? :
PHP Code:
server_cmd("removeip ^"%s^";writeip"arg
mahmoodi.1313 is offline
mahmoodi.1313
Senior Member
Join Date: Aug 2014
Location: Steamboat Springs, USA
Old 07-01-2015 , 06:52   Re: Remove the line from the file
Reply With Quote #7

How to remove a line configeditor plugin?
mahmoodi.1313 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-01-2015 , 17:38   Re: Remove the line from the file
Reply With Quote #8

Quote:
Originally Posted by mahmoodi.1313 View Post
How to remove a line configeditor plugin?
What do you mean?
__________________
fysiks is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 07-01-2015 , 18:33   Re: Remove the line from the file
Reply With Quote #9

Quote:
Originally Posted by mahmoodi.1313 View Post
How to remove a line configeditor plugin?
You can't use a plugin to remove a line from a plugin. You have to do it, and then compile it yourself.
__________________

Last edited by ddhoward; 07-01-2015 at 18:34.
ddhoward is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-01-2015 , 19:07   Re: Remove the line from the file
Reply With Quote #10

You need to clarify what you need. Do you want to search for a line of text in a file and then remove it?

ie. if line == "this text" then comment it out or delete it?
__________________

Last edited by Bugsy; 07-01-2015 at 19:53.
Bugsy 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 00:35.


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