Jump to content

config.cfg help


Recommended Posts

#include <File.au3>

_FileWriteToLine("C:\Program Files\Steam\steamapps\francescaklinger\counter-strike\cstrike\cfgfuck.cfg", 3, "my replacement for line 3", )

i have a file in my cstrike folder calld "cfgfuck.cfg" and i dont understand why that line of code wont work...maybe the file has to be .txt format

Link to comment
Share on other sites

still dont work...

ok im just going to use fileWrite

now im getting some were

but how do you filewrite this key "

i need to add this line to the cfgfile

amx_nick "2134235" "testname"

but how do you filewrite this key "

------------------example-code---------------------------

$target = InputBox("cfgfuck", "Enter steamID", "", "")

$file = FileOpen("cfgfuck.cfg", 2)

; Check if file opened for writing OK

If $file = -1 Then

MsgBox(0, "Error", "Unable to open file.")

Exit

EndIf

FileWrite($file, "amx_nick " & $target & " testname" )

FileWrite($file, "")

FileWrite($file, "")

FileClose($file)

Edited by onedayillpay
Link to comment
Share on other sites

send("+'") works if you want to send "

but im trying to filewrite that key

FileWrite($file, ' " ')

FileWrite($file, """"""""""""""""""""""""""""""""""""""""""Frustrated)

ok i got it it takes four filewrite(" " " ")

gadamn y was that not in the read me

Edited by onedayillpay
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...