Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: problem with my scripts

  1. #1
    Private
    Join Date
    Aug 2013
    Posts
    95
    Thanks
    13
    Thanked 4 Times in 3 Posts

    problem with my scripts

    hello everybody

    i have a problem
    my mod do lag the servers so my mod seems to be correct, i dont get a error in the scripts, where is the problem?
    many of scripts? i have:
    -ranksystem
    -account system
    -prestige
    -HUD kills,deaths,bashes,headshots,leader(if he is leader, it mark yes else no)
    -i have 11 menus
    so you can help me?
    thoumta tell me that it's my whiles but idk what do or change...
    xfire: ordi37zk
    Last edited by ORDI; 6th April 2014 at 21:16.

  2. #2
    Private
    Join Date
    Aug 2013
    Posts
    95
    Thanks
    13
    Thanked 4 Times in 3 Posts
    in my local server, the server started to lag when i started to open the server
    in a server source internet, it lag more in more
    in another, it crash
    in again another it lag moment for moment

  3. #3
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    did you test with developer 1?
    Is there any infinite loop?
    are you aware dedicated 0 servers cannot read files except in their first frame?
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  4. #4
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by ORDI View Post
    hello everybody

    i have a problem
    my mod do lag the servers so my mod seems to be correct, i dont get a error in the scripts, where is the problem?
    many of scripts? i have:
    -ranksystem
    -account system
    -prestige
    -HUD kills,deaths,bashes,headshots,leader(if he is leader, it mark yes else no)
    -i have 11 menus
    so you can help me?
    thoumta tell me that it's my whiles but idk what do or change...
    xfire: ordi37zk
    Servers don't lag when there aren't any errors. So, the fact that your server is lagging tells me it is producing script runtime errors, but you simply aren't recording them. Enable logfile and you will see the errors:

    Code:
    set logfile "2"
    This will produce a file named "console_mp.log". Open it with a text editor and search for the word "runtime".

  5. #5
    Private
    Join Date
    Aug 2013
    Posts
    95
    Thanks
    13
    Thanked 4 Times in 3 Posts
    PHP Code:
    ******* script runtime error *******
    pair 'undefined' and '.txt' has unmatching types 'undefined' and 'string': (file 'ordi/tdm.gsc'line 1345)
     
    f=openfile(self.loginname+".txt","write"); 
    i took the acc system edit by tally in http://killtube.org/showthread.php?1...em-2-caracters
    in tdm.gsc:
    PHP Code:
    Callback_PlayerDisconnect()
    {  
       if(
    isdefined(self.login)) self saveacc();
        
        if(!
    level.splitscreen)
            
    iprintln(&"MP_DISCONNECTED"self);


    saveacc()
    {
        if(
    self.sessionstate=="intermission") return;
        
    f=openfile(self.loginname+".txt","write");
        
    fprintln(f,self.loginpw);
        if(!
    isdefined(self.banned)) fprintln(f,0); else fprintln(f,1);
        
    fprintln(f,self.rank);
        
    fprintln(f,self.xp);
        
    fprintln(f,self.kills);
        
    fprintln(f,self.deaths);
        
    fprintln(f,self.bashes);
        
    fprintln(f,self.headshots);
        
    fprintln(f,self.leader);
        
    closefile(f);
    }

    loadacc()
    {
        
    f=openfile(self.loginname+".txt","read");
        
    freadln(f);
        
    self.loginpw=fgetarg(f,0);
        
    self.rank=int(fgetarg(f,2));
        
    self.xp=int(fgetarg(f,3));
        
    self.kills=int(fgetarg(f,4));
        
    self.deaths=int(fgetarg(f,5));
        
    self.bashes=int(fgetarg(f,6));
        
    self.headshots=int(fgetarg(f,7));
        
    self.leader=int(fgetarg(f,8));
        
    closefile(f);

    in _account.gsc
    PHP Code:
    /**/
    init()
    {
        
    game["menu_login"] = "login";
        
    game["menu_register"] = "register";
        
    precacheMenugame["menu_login"] );
        
    precacheMenugame["menu_register"] );
        
        
    level thread onPlayerConnect();
    }

    onPlayerConnect()
    {
        for( ;; )
        {
            
    level waittill"connected"player );
            
            
    player thread monitorAccount();
        }
    }

    monitorAccount()
    {
        
    self.lname "";
        
    self.lpw "";
        
    self.text "";
        
    self.edittext false;
        
    self setclientcvar"loginname""_" );
        
    self setclientcvar"loginpw""" );
        
    self setclientcvar"error""" );
        
        for( ;; )
        {
            
    self waittill"menuresponse"menuresponse );

            if( 
    menu == "login" )
            {
                if( 
    response.size == && issubstr"0123456789abcdefghijklmnopqrstuvwxyz"response[0] ) )
                {
                    if( !
    self.edittext 
                    {
                        if( 
    self.lname.size 35 
                            
    self.lname += response;
                            
                        
    self setclientcvar"loginname"self.lname "_" );
                        
                        continue;
                    } 
                    else
                    {
                        if( 
    self.lpw.size 35 
                            
    self.lpw += response;
                            
                        
    self setclientcvar"loginpw"self.lpw "_" );
                        
                        continue;
                    }
                } 
                else if( 
    response[0] == "#" )
                {
                    if( 
    response.size 80 
                        continue;
                        
                    
    name="";
                    
    pw="";
                    for( 
    i=1response.sizei++ )
                    {
                        if( 
    issubstr"123456789abcdefghijklmnopqrstuvwxyz"response[i] ) ) 
                            
    name += response[i];
                            
                        if( 
    response[i] == "#" 
                            break;                
                    }
                    
                    for( 
    i=1response.sizei++ )
                    {
                        if( 
    issubstr"123456789abcdefghijklmnopqrstuvwxyz"response[i] ) ) 
                            
    pw += response[i];                
                    }
                
                    
                    if( 
    name != "" && pw != "" && name.size <= 35 && pw.size <= 35 )
                    {
                        
    self.lname name;
                        
    self.lpw pw;
                        
    self.edittext false;
                        
    self setclientcvar"loginname",name);
                        
    self setclientcvar"loginpw",pw);
                    }
                }
                
                if( 
    response == "bs" 
                {
                    if( !
    self.edittext 
                    {
                        
    self.lname getsubstrself.lname0self.lname.size );
                        
    self setclientcvar"loginname"self.lname "_" );
                        continue;
                    } 
                    else
                    {
                        
    self.lpw getsubstrself.lpw0self.lpw.size );
                        
    self setclientcvar"loginpw"self.lpw "_" );
                        continue;
                    }
                }
                
                if( 
    response == "nm" 
                {
                    
    self.edittext false;
                    
    self setclientcvar"loginname"self.lname "_" );
                    
    self setclientcvar"loginpw"self.lpw );
                    continue;
                }
                
                if( 
    response == "pw" 
                {
                    
    self.edittext true;
                    
    self setclientcvar"loginname"self.lname );
                    
    self setclientcvar"loginpw"self.lpw "_" );
                    continue;
                }
                
                if( 
    response == "ok" 
                {
                    if( 
    isdefinedself.login ) ) 
                    {
                        
    self thread er"^7Vec ste prijavljeni^3!""^7You^3'^7re already logged in^3!" );
                        continue;
                    }
                    
                    if( 
    self.lname == "" 
                    {
                        
    self thread er"^7Nisi unio naziv^3!""^7Please specify a name^3!" );
                        continue;
                    }
                    
                    if( 
    self.lpw == "" 
                    {
                        
    self thread er"^7Nisi unio zaporku^3!""^7Please specify a password^3!" );
                        continue;
                    }
                    
                    
    openfileself.lname ".cfg""read" );
                    
                    if( 
    == -
                    {
                        
    self thread er"^7Korisnik ne postoji^3!""^7No such user^3!" );
                        continue;
                    }
                    
                    
    freadln);
                    if( 
    fgetargf) != self.lpw 
                    {
                        
    self thread er"^7Pogresna lozinka^3!""^7Invalid password^3!" );
                        
    closefile);
                        continue;
                    }
                    
                    if( 
    intfgetargf) ) ) 
                    {
                        
    self thread er"^7Profil je izbrisan^3!""^7ACCOUNT BANNED^3!" );
                        
    closefile);
                        continue;
                    }
                    
                    
    closefile);
                    
                    
    players getentarray"player""classname" );
                    for( 
    i=0players.sizei++ ) 
                        if( 
    isdefinedplayers[i].loginname ) && players[i].loginname == self.lname 
                            break;
                            
                
    /*    if( i !=players.size ) 
                    {    
                        self thread er("^7To ime je trenutno u upotrebi^3!", "^7This username is currently in use^3!" );
                        continue;
                    }
                */
                    
                    
    self.loginname self.lname;
                    
    self.loginpw self.lpw;
                    
    self ordi\tdm::loadacc();
                    
    self.login true;
                    
    self setclientcvar"execute""seta autologin openscriptmenu menu_login #" self.loginname "#" self.loginpw ";writeconfig logininfo.cfg" );
                    
    self closemenu();
                    
    self closeInGameMenu();
                    
    wait .1;
                    
    self closemenu();
                    
    self closeInGameMenu();
                }
            }
            else if ( 
    menu == "register" )
            {            
                if( 
    response.size == && issubstr"0123456789abcdefghijklmnopqrstuvwxyz"response[0] ) ) 
                {
                    if( !
    self.edittext 
                    {
                        if( 
    self.lname.size 35 
                            
    self.lname += response;
                        
    self setclientcvar"loginname"self.lname "_" );
                        continue;
                    } 
                    else
                    {
                        if(
    self.lpw.size<35self.lpw+=response;
                        
    self setclientcvar("loginpw",self.lpw+"_");
                        continue;
                    }
                }
                
                if( 
    response == "bs" 
                {
                    if( !
    self.edittext 
                    {
                        
    self.lname=getsubstr(self.lname,0,self.lname.size-1);
                        
    self setclientcvar("loginname",self.lname+"_");
                        continue;
                    } 
                    else
                    {
                        
    self.lpw=getsubstr(self.lpw,0,self.lpw.size-1);
                        
    self setclientcvar("loginpw",self.lpw+"_");
                        continue;
                    }
                }
        
                if( 
    response == "nm" 
                {
                    
    self.edittext=false;
                    
    self setclientcvar("loginname",self.lname+"_");
                    
    self setclientcvar("loginpw",self.lpw);
                    continue;
                }
                
                if( 
    response == "pw" 
                {
                    
    self.edittext=true;
                    
    self setclientcvar("loginname",self.lname);
                    
    self setclientcvar("loginpw",self.lpw+"_");
                    continue;
                }
                
                if( 
    response == "ok" 
                {
                    if(
    isdefined(self.login)) {self thread er("^7Vec si prijavljen^3!","^7You^3'^7re already logged in^3!");continue;}
                    if(
    self.lname=="") {self thread er("^7Nisi unio naziv^3!","^7Please specify a name^3!");continue;}
                    if(
    self.lpw=="") {self thread er("^7Nisi unio lozinku^3!","^7Please specify a password^3!");continue;}
                    
    f=openfile(self.lname+".cfg","read");
                    if(
    f!=-1) {self thread er("^7To ime je zauzeto^3, ^7odaberite drugo^3!","^7This name is occupied^3, ^7choose an other one^3!");closefile(f);continue;}
                    
    self.loginname=self.lname;
                    
    self.loginpw=self.lpw;
                    
    self.login=true;
                    
    self ordi\tdm::saveacc();
                    
    self ordi\tdm::loadacc();
                    
    f=openfile("_users.cfg","append");
                    
    fprintln(f,"\n"+self.loginname);
                    
    closefile(f);
                    
    self thread er("^7Registracija je uspjela^3!","^7Registration successful^3!");
                    
    self setclientcvar("execute","seta autologin openscriptmenu menu_login #"+self.loginname+"#"+self.loginpw+";writeconfig logininfo.cfg");
                    
    wait .1;
                    
    self closemenu();
                    
    self closeInGameMenu();
                    
    wait .1;
                    
    self closemenu();
                    
    self closeInGameMenu();
                    
    self iprintlnbold("hello!");
                }
            }            
            
            
            
            
        }
    }

    ertext1text2 )
    {
        
    self endon"disconnect" );
        
        
    self notify"enderror" );
        
    self endon"enderror" );
     
        
    self setclientcvar"error"text2 );
            
        
    wait1.5 );    
        
        
    self setclientcvar"error""" );

    what i have to do?

  6. #6
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by ORDI View Post
    PHP Code:
    ******* script runtime error *******
    pair 'undefined' and '.txt' has unmatching types 'undefined' and 'string': (file 'ordi/tdm.gsc'line 1345)
     
    f=openfile(self.loginname+".txt","write"); 
    i took the acc system edit by tally in http://killtube.org/showthread.php?1...em-2-caracters
    in tdm.gsc:
    PHP Code:
    Callback_PlayerDisconnect()
    {  
       if(
    isdefined(self.login)) self saveacc();
        
        if(!
    level.splitscreen)
            
    iprintln(&"MP_DISCONNECTED"self);


    saveacc()
    {
        if(
    self.sessionstate=="intermission") return;
        
    f=openfile(self.loginname+".txt","write");
        
    fprintln(f,self.loginpw);
        if(!
    isdefined(self.banned)) fprintln(f,0); else fprintln(f,1);
        
    fprintln(f,self.rank);
        
    fprintln(f,self.xp);
        
    fprintln(f,self.kills);
        
    fprintln(f,self.deaths);
        
    fprintln(f,self.bashes);
        
    fprintln(f,self.headshots);
        
    fprintln(f,self.leader);
        
    closefile(f);
    }

    loadacc()
    {
        
    f=openfile(self.loginname+".txt","read");
        
    freadln(f);
        
    self.loginpw=fgetarg(f,0);
        
    self.rank=int(fgetarg(f,2));
        
    self.xp=int(fgetarg(f,3));
        
    self.kills=int(fgetarg(f,4));
        
    self.deaths=int(fgetarg(f,5));
        
    self.bashes=int(fgetarg(f,6));
        
    self.headshots=int(fgetarg(f,7));
        
    self.leader=int(fgetarg(f,8));
        
    closefile(f);

    in _account.gsc
    PHP Code:
    /**/
    init()
    {
        
    game["menu_login"] = "login";
        
    game["menu_register"] = "register";
        
    precacheMenugame["menu_login"] );
        
    precacheMenugame["menu_register"] );
        
        
    level thread onPlayerConnect();
    }

    onPlayerConnect()
    {
        for( ;; )
        {
            
    level waittill"connected"player );
            
            
    player thread monitorAccount();
        }
    }

    monitorAccount()
    {
        
    self.lname "";
        
    self.lpw "";
        
    self.text "";
        
    self.edittext false;
        
    self setclientcvar"loginname""_" );
        
    self setclientcvar"loginpw""" );
        
    self setclientcvar"error""" );
        
        for( ;; )
        {
            
    self waittill"menuresponse"menuresponse );

            if( 
    menu == "login" )
            {
                if( 
    response.size == && issubstr"0123456789abcdefghijklmnopqrstuvwxyz"response[0] ) )
                {
                    if( !
    self.edittext 
                    {
                        if( 
    self.lname.size 35 
                            
    self.lname += response;
                            
                        
    self setclientcvar"loginname"self.lname "_" );
                        
                        continue;
                    } 
                    else
                    {
                        if( 
    self.lpw.size 35 
                            
    self.lpw += response;
                            
                        
    self setclientcvar"loginpw"self.lpw "_" );
                        
                        continue;
                    }
                } 
                else if( 
    response[0] == "#" )
                {
                    if( 
    response.size 80 
                        continue;
                        
                    
    name="";
                    
    pw="";
                    for( 
    i=1response.sizei++ )
                    {
                        if( 
    issubstr"123456789abcdefghijklmnopqrstuvwxyz"response[i] ) ) 
                            
    name += response[i];
                            
                        if( 
    response[i] == "#" 
                            break;                
                    }
                    
                    for( 
    i=1response.sizei++ )
                    {
                        if( 
    issubstr"123456789abcdefghijklmnopqrstuvwxyz"response[i] ) ) 
                            
    pw += response[i];                
                    }
                
                    
                    if( 
    name != "" && pw != "" && name.size <= 35 && pw.size <= 35 )
                    {
                        
    self.lname name;
                        
    self.lpw pw;
                        
    self.edittext false;
                        
    self setclientcvar"loginname",name);
                        
    self setclientcvar"loginpw",pw);
                    }
                }
                
                if( 
    response == "bs" 
                {
                    if( !
    self.edittext 
                    {
                        
    self.lname getsubstrself.lname0self.lname.size );
                        
    self setclientcvar"loginname"self.lname "_" );
                        continue;
                    } 
                    else
                    {
                        
    self.lpw getsubstrself.lpw0self.lpw.size );
                        
    self setclientcvar"loginpw"self.lpw "_" );
                        continue;
                    }
                }
                
                if( 
    response == "nm" 
                {
                    
    self.edittext false;
                    
    self setclientcvar"loginname"self.lname "_" );
                    
    self setclientcvar"loginpw"self.lpw );
                    continue;
                }
                
                if( 
    response == "pw" 
                {
                    
    self.edittext true;
                    
    self setclientcvar"loginname"self.lname );
                    
    self setclientcvar"loginpw"self.lpw "_" );
                    continue;
                }
                
                if( 
    response == "ok" 
                {
                    if( 
    isdefinedself.login ) ) 
                    {
                        
    self thread er"^7Vec ste prijavljeni^3!""^7You^3'^7re already logged in^3!" );
                        continue;
                    }
                    
                    if( 
    self.lname == "" 
                    {
                        
    self thread er"^7Nisi unio naziv^3!""^7Please specify a name^3!" );
                        continue;
                    }
                    
                    if( 
    self.lpw == "" 
                    {
                        
    self thread er"^7Nisi unio zaporku^3!""^7Please specify a password^3!" );
                        continue;
                    }
                    
                    
    openfileself.lname ".cfg""read" );
                    
                    if( 
    == -
                    {
                        
    self thread er"^7Korisnik ne postoji^3!""^7No such user^3!" );
                        continue;
                    }
                    
                    
    freadln);
                    if( 
    fgetargf) != self.lpw 
                    {
                        
    self thread er"^7Pogresna lozinka^3!""^7Invalid password^3!" );
                        
    closefile);
                        continue;
                    }
                    
                    if( 
    intfgetargf) ) ) 
                    {
                        
    self thread er"^7Profil je izbrisan^3!""^7ACCOUNT BANNED^3!" );
                        
    closefile);
                        continue;
                    }
                    
                    
    closefile);
                    
                    
    players getentarray"player""classname" );
                    for( 
    i=0players.sizei++ ) 
                        if( 
    isdefinedplayers[i].loginname ) && players[i].loginname == self.lname 
                            break;
                            
                
    /*    if( i !=players.size ) 
                    {    
                        self thread er("^7To ime je trenutno u upotrebi^3!", "^7This username is currently in use^3!" );
                        continue;
                    }
                */
                    
                    
    self.loginname self.lname;
                    
    self.loginpw self.lpw;
                    
    self ordi\tdm::loadacc();
                    
    self.login true;
                    
    self setclientcvar"execute""seta autologin openscriptmenu menu_login #" self.loginname "#" self.loginpw ";writeconfig logininfo.cfg" );
                    
    self closemenu();
                    
    self closeInGameMenu();
                    
    wait .1;
                    
    self closemenu();
                    
    self closeInGameMenu();
                }
            }
            else if ( 
    menu == "register" )
            {            
                if( 
    response.size == && issubstr"0123456789abcdefghijklmnopqrstuvwxyz"response[0] ) ) 
                {
                    if( !
    self.edittext 
                    {
                        if( 
    self.lname.size 35 
                            
    self.lname += response;
                        
    self setclientcvar"loginname"self.lname "_" );
                        continue;
                    } 
                    else
                    {
                        if(
    self.lpw.size<35self.lpw+=response;
                        
    self setclientcvar("loginpw",self.lpw+"_");
                        continue;
                    }
                }
                
                if( 
    response == "bs" 
                {
                    if( !
    self.edittext 
                    {
                        
    self.lname=getsubstr(self.lname,0,self.lname.size-1);
                        
    self setclientcvar("loginname",self.lname+"_");
                        continue;
                    } 
                    else
                    {
                        
    self.lpw=getsubstr(self.lpw,0,self.lpw.size-1);
                        
    self setclientcvar("loginpw",self.lpw+"_");
                        continue;
                    }
                }
        
                if( 
    response == "nm" 
                {
                    
    self.edittext=false;
                    
    self setclientcvar("loginname",self.lname+"_");
                    
    self setclientcvar("loginpw",self.lpw);
                    continue;
                }
                
                if( 
    response == "pw" 
                {
                    
    self.edittext=true;
                    
    self setclientcvar("loginname",self.lname);
                    
    self setclientcvar("loginpw",self.lpw+"_");
                    continue;
                }
                
                if( 
    response == "ok" 
                {
                    if(
    isdefined(self.login)) {self thread er("^7Vec si prijavljen^3!","^7You^3'^7re already logged in^3!");continue;}
                    if(
    self.lname=="") {self thread er("^7Nisi unio naziv^3!","^7Please specify a name^3!");continue;}
                    if(
    self.lpw=="") {self thread er("^7Nisi unio lozinku^3!","^7Please specify a password^3!");continue;}
                    
    f=openfile(self.lname+".cfg","read");
                    if(
    f!=-1) {self thread er("^7To ime je zauzeto^3, ^7odaberite drugo^3!","^7This name is occupied^3, ^7choose an other one^3!");closefile(f);continue;}
                    
    self.loginname=self.lname;
                    
    self.loginpw=self.lpw;
                    
    self.login=true;
                    
    self ordi\tdm::saveacc();
                    
    self ordi\tdm::loadacc();
                    
    f=openfile("_users.cfg","append");
                    
    fprintln(f,"\n"+self.loginname);
                    
    closefile(f);
                    
    self thread er("^7Registracija je uspjela^3!","^7Registration successful^3!");
                    
    self setclientcvar("execute","seta autologin openscriptmenu menu_login #"+self.loginname+"#"+self.loginpw+";writeconfig logininfo.cfg");
                    
    wait .1;
                    
    self closemenu();
                    
    self closeInGameMenu();
                    
    wait .1;
                    
    self closemenu();
                    
    self closeInGameMenu();
                    
    self iprintlnbold("hello!");
                }
            }            
            
            
            
            
        }
    }

    ertext1text2 )
    {
        
    self endon"disconnect" );
        
        
    self notify"enderror" );
        
    self endon"enderror" );
     
        
    self setclientcvar"error"text2 );
            
        
    wait1.5 );    
        
        
    self setclientcvar"error""" );

    what i have to do?
    You should read the thread - the script (which I did not write, only ammended) does not work with any file types other than ".cfg". It will NOT work (for somone reason) with ".txt".

    I didn't write

  7. #7
    Private
    Join Date
    Aug 2013
    Posts
    95
    Thanks
    13
    Thanked 4 Times in 3 Posts
    .cfg dont work too, same error

  8. #8
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    .cfg wont make an undefined var magically defined.

    Try to debug it first, i think .lname instead of .loginname should help you a lot already
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  9. #9
    Private First Class
    Join Date
    Jul 2013
    Posts
    170
    Thanks
    44
    Thanked 16 Times in 11 Posts
    That is working fine.. i'm using that accounts (you did something wrong )

  10. #10
    Private
    Join Date
    Aug 2013
    Posts
    95
    Thanks
    13
    Thanked 4 Times in 3 Posts
    i placed:
    PHP Code:
    if(isdefined(self.login)) self saveacc(); 
    in player disconnect (tdm.gsc)
    and:
    PHP Code:
     saveacc()
    {
        if(
    self.sessionstate=="intermission") return;
        
    f=openfile(self.loginname+".txt","write");
        
    fprintln(f,self.loginpw);
        if(!
    isdefined(self.banned)) fprintln(f,0); else fprintln(f,1);
        
    fprintln(f,self.rank);
        
    fprintln(f,self.xp);
        
    fprintln(f,self.kills);
        
    fprintln(f,self.deaths);
        
    fprintln(f,self.bashes);
        
    fprintln(f,self.headshots);
        
    fprintln(f,self.leader);
        
    closefile(f);
    }

    loadacc()
    {
        
    f=openfile(self.loginname+".txt","read");
        
    freadln(f);
        
    self.loginpw=fgetarg(f,0);
        
    self.rank=int(fgetarg(f,2));
        
    self.xp=int(fgetarg(f,3));
        
    self.kills=int(fgetarg(f,4));
        
    self.deaths=int(fgetarg(f,5));
        
    self.bashes=int(fgetarg(f,6));
        
    self.headshots=int(fgetarg(f,7));
        
    self.leader=int(fgetarg(f,8));
        
    closefile(f);

    in zom.gsc
    i changed only the maps\mp\gametypes... for ordi\_account

Posting Permissions

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