fopen problem
#1

Wow i am a dang noob.... i cannot figure out how to read from a file then write a value to an existing line of text...
I am trying to make a faction and have the faction be 1 for the gang in the players profile but i cannot figure it out... the compiler`s library crashes everytime i compile... this is the problem area:

Код:
new checkpoint1;
new string[128],sendername[128];
GetPlayerName(newsz,sendername,sizeof(sendername));
format(string,sizeof(string), "ladmin/%s.save", sendername);
new File:news = fopen(string,io_write)
I am trying to make it so it writes to the existing file News = 0 but i cannot figure out how, this looks like it will write it anywhere....


I am such a scripting newb
Reply


Messages In This Thread
fopen problem - by CSMajor - 16.10.2010, 01:13
Re: fopen problem - by Rachael - 16.10.2010, 01:44
Re: fopen problem - by CSMajor - 16.10.2010, 01:49
Re: fopen problem - by Rachael - 16.10.2010, 01:56
Re: fopen problem - by CSMajor - 16.10.2010, 02:19
Re: fopen problem - by Rachael - 16.10.2010, 02:39
Re: fopen problem - by CSMajor - 16.10.2010, 02:44

Forum Jump:


Users browsing this thread: 1 Guest(s)