Results 1 to 9 of 9

Thread: save stats with name

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Private feritkkan's Avatar
    Join Date
    Jun 2016
    Posts
    29
    Thanks
    1
    Thanked 0 Times in 0 Posts
    oh i did this with trial and error and working
    Code:
    save(file)
    {
    			f=openfile(self.name+".wp", "write");
    			fprintln(f, self.lol);
    // witam :)
    			fprintln(f, self.rankc);
    			fprintln(f, self.bash);
    			fprintln(f, self.head);
    			fprintln(f, self.pdeaths);
    // yo
    			fprintln(f, self.omg);
    			closefile(f);
    }
    Code:
    	f=openfile(self.name+".wp","read");
        freadln(f);
    	self.lol = int(fgetarg(f,0));
    	self.rankc = int(fgetarg(f,1));
    	self.bash = int(fgetarg(f,2));
    	self.head = int(fgetarg(f,3));
    	self.pdeaths = int(fgetarg(f,4));
    	self.omg = int(fgetarg(f,5));
    	closefile(f);
    https://killtube.org/showthread.php?...ighlight=stats now i will add this
    Last edited by feritkkan; 28th June 2016 at 10:05.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •