PDA

View Full Version : bad syntax



feritkkan
2nd July 2016, 14:37
hi dear killtube community
i wanna auto semi-cracked system

if they are have guid save rank to their guid:
{
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
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


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


******* 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 ====
---------------------------

Ni3ls
2nd July 2016, 14:45
if(self getGUID() == 0)
self thread saveonname();
else
self thread saveonguid();

And your error is a different script?
I dont see this line

guid = if(self getGuid;

feritkkan
2nd July 2016, 22:00
if(self getGUID() == 0)
self thread saveonname();
else
self thread saveonguid();



guid = if(self getGuid;


******* script compile error *******
uninitialised variable 'guid': (file 'huntyaudobriy/save.gsc', line 7)
f=openfile(guid+".wp", "write");

feritkkan
2nd July 2016, 23:28
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

milepunta
4th July 2016, 12:09
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);
}
}