Raised This Month: $ Target: $400
 0% 

Solved Manipulate string in file


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 12-15-2020 , 17:07   Manipulate string in file
Reply With Quote #1

Is there a way to pull a line up without leaving a space? when using "^r" there is an "invisible space on the line.

Example:

PHP Code:
0

if(iFile)
{
    new 
szData[120], szData1[120]

    while(
fgets(iFileszDatacharsmax(szData)))
    {
        
i++
        switch(
szData[0])
        {
            case 
EOS';''/': continue
            default:
            {
                
parse(szDataszData1charsmax(szData1))

                if(
equal(szData1example))
                {
                    
write_file(szConfig"^r"i-1)                        
                    break
                }
            }
        }
    }

    
fclose(iFile)

__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/

Last edited by iceeedr; 12-16-2020 at 10:58.
iceeedr is offline
Send a message via Skype™ to iceeedr
 



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 14:13.


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