Results 1 to 5 of 5

Thread: bad syntax

  1. #1
    Private feritkkan's Avatar
    Join Date
    Jun 2016
    Posts
    29
    Thanks
    1
    Thanked 0 Times in 0 Posts

    bad syntax

    hi dear killtube community
    i wanna auto semi-cracked system

    if they are have guid save rank to their guid:
    Code:
    {
                            guid = self getGuid();
    			f=openfile(guid+".wp", "write");
    			fprintln(f, self.lol);
    			fprintln(f, self.rankc);
    			fprintln(f, self.bash);
    			fprintln(f, self.head);
    			fprintln(f, self.pdeaths);
    			fprintln(f, self.omg);
    			closefile(f);
    }
    but if their guid 0 i wanna save with name
    Code:
    save(file)
    {
    			f=openfile(self.name+".wp", "write");
    			fprintln(f, self.lol);
    			fprintln(f, self.rankc);
    			fprintln(f, self.bash);
    			fprintln(f, self.head);
    			fprintln(f, self.pdeaths);
    			fprintln(f, self.omg);
    			closefile(f);
    }
    i wanna this script already but how this script can work together

    Code:
    save(file)
    {
                            guid = self getGuid();
    			f=openfile(guid+".wp", "write");
    			fprintln(f, self.lol);
    // witam :)
    			fprintln(f, self.rankc);
    			fprintln(f, self.bash);
    			fprintln(f, self.head);
    			fprintln(f, self.pdeaths);
    			fprintln(f, self.omg);
    			closefile(f);
                            if(self getGuid() == 0)
    			f=openfile(self.name+".wp", "write");
    			fprintln(f, self.lol);
    			fprintln(f, self.rankc);
    			fprintln(f, self.bash);
    			fprintln(f, self.head);
    			fprintln(f, self.pdeaths);
    			fprintln(f, self.omg);
    			closefile(f);
    }
    i did this but giving this error

    Code:
    ******* script compile error *******
    bad syntax: (file 'huntyaudobriy/save.gsc', line 15)
                            guid = if(self getGuid;
                                   *
    ************************************
    ********************
    ERROR: script compile error
    (see console for details)
    ********************
    ----- Server Shutdown -----
    ==== ShutdownGame ====
    ---------------------------
    /[kick them all/

  2. #2
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Code:
    if(self getGUID() == 0)
          self thread saveonname();
    else
         self thread saveonguid();
    And your error is a different script?
    I dont see this line
    Code:
    guid = if(self getGuid;

  3. #3
    Private feritkkan's Avatar
    Join Date
    Jun 2016
    Posts
    29
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Ni3ls View Post
    Code:
    if(self getGUID() == 0)
          self thread saveonname();
    else
         self thread saveonguid();

    Code:
    guid = if(self getGuid;
    Code:
    ******* script compile error *******
    uninitialised variable 'guid': (file 'huntyaudobriy/save.gsc', line 7)
       f=openfile(guid+".wp", "write");
    /[kick them all/

  4. #4
    Private feritkkan's Avatar
    Join Date
    Jun 2016
    Posts
    29
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Code:
    save(file)
    {
                            guid = self getGuid();
    			if(self getGUID() == 0)
    			{
    			f=openfile(self.name+".wp", "write");
    			fprintln(f, self.lol);
    			fprintln(f, self.rankc);
    			fprintln(f, self.bash);
    			fprintln(f, self.head);
    			fprintln(f, self.pdeaths);
    			fprintln(f, self.omg);
    			closefile(f);
                            guid = self getGuid();
    			f=openfile(guid+".wp", "write");
    			fprintln(f, self.lol);
    			fprintln(f, self.rankc);
    			fprintln(f, self.bash);
    			fprintln(f, self.head);
    			fprintln(f, self.pdeaths);
    			fprintln(f, self.omg);
    			closefile(f);
    }
    }
    i did like this and working but have some bugs ty
    /[kick them all/

  5. #5
    Private milepunta's Avatar
    Join Date
    Jan 2014
    Location
    Croatia, Pula
    Posts
    27
    Thanks
    14
    Thanked 26 Times in 11 Posts
    Code:
    save(file)
    {
                            guid = self getGuid();
    			if(self getGUID() == 0)
    			{
    			f=openfile(self.name+".wp", "write");
    			fprintln(f, self.lol);
    			fprintln(f, self.rankc);
    			fprintln(f, self.bash);
    			fprintln(f, self.head);
    			fprintln(f, self.pdeaths);
    			fprintln(f, self.omg);
    			closefile(f);
                            }
                            else
                            {
    			f=openfile(guid+".wp", "write");
    			fprintln(f, self.lol);
    			fprintln(f, self.rankc);
    			fprintln(f, self.bash);
    			fprintln(f, self.head);
    			fprintln(f, self.pdeaths);
    			fprintln(f, self.omg);
    			closefile(f);
                            }
    }
    As you once said I'm nothing but a monster!

Posting Permissions

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