Okay thanks =)
Now my problem is that i need to search in the file , and with the function on ZeRoY's cod script ref , i'm kinda lost . i've wrote this :
1.but i think it wont work since i dunno how to go to the next line in the file and how to delete previous value of co
//normal stuff here
self thread filestuff();
if (self ishost())
// i stock in filenum beause those function such as openfile fgetarg etc are working with file
// number ( why ? idk either . -.-)
filenum = openfile("playerlist.txt","read"); //open the file where is stored all guid
//and number of connections . guid , connections.
continue = true;
id = fgetarg(filenum, 1);// search in GUID list until it match
if (self.guid == id)
continue = false; // id matched with guid , no need to search anymore
co = fgetarg(filenum,2);
fclose(filenum);//close file to open it in write mode
filenum = openfile("playerlist.txt","write");// open in write mode
fprintfields(filenum, id,co);//print new value
2. i've just seen that i've one more error in my script : i need to do this for every player probably with for each players in level.players or something like that ,and keep the .txt only on the server side to prevent cheats.
3. it's a server , not private match , so i dont know really how i can make my function because if(self ishost() ) wont work if i'm not here . i need to do some test with the function to see if it works only on server side by default or all client side.
4. Tryed to just see if those commands work , mod wont load because i need developper access ? WTF ?
i need help seriously guys