16.10.2010, 01:13
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:
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
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 such a scripting newb
![Sad](images/smilies/sad.gif)