oh come on!
i made a test script; it reads the file just fine but cant write anything into it
Code:
new form[128], steamid[32]
get_user_authid(id, steamid,31)
format(form,127, "%s %s", steamid, bla)
new data[64], authid[32], len
new fid = fopen(settingsfile, "rwt")
while(!feof(fid)) {
fgets(fid, data,63)
len = strlen(data) * -1
strbreak(data, authid,31, data,1)
if(!equal(steamid,authid)) continue
fseek(fid, len,SEEK_CUR) //goto start of the line
break
}
fprintf(fid, form)
fclose(fid)
or do i just need to first read, then close and open it again for writing?
__________________