i still fail to see how you are actually debuggin this.
i see no iprintlns printing the filename its trying to write to.
i see no iprints whatsoever for debugging.
Are you sure you wanna fix this code or are you just wasting our time?
Printable View
i still fail to see how you are actually debuggin this.
i see no iprintlns printing the filename its trying to write to.
i see no iprints whatsoever for debugging.
Are you sure you wanna fix this code or are you just wasting our time?
I found a bug, but I can not solve it.
creating account work .
why not read asd.txt?
create test account:
PHP Code:
if(response == "create")
{
f=openfile("asd.txt", "write");
fprintln(f, self.pers["typedvalutelogin"]);
fprintln(f, self.pers["typedvalutepassword"]);
closefile(f);
self iprintlnbold("account created name : " + self.pers["typedvalutelogin"] + " / password : "+ self.pers["typedvalutepassword"]);
continue;
}
PHP Code:
if(response == "login")
{
self.writelogin = 0;
self.writepassword = 0;
f=openfile("asd.txt","read");
freadln(f);
self.checklogin = int(fgetarg(f,0));
self.checkpassword = int(fgetarg(f,1));
closefile(f);
if(self.pers["typedvalutelogin"]=="")
{
self iprintlnbold("Please specify a name");
continue;
}
else if(self.pers["typedvalutepassword"]=="")
{
self iprintlnbold("Please specify a password");
continue;
}
else if(self.pers["typedvalutelogin"].size > 3)
{
self iprintlnbold(self.checklogin+" / "+self.checkpassword);
if(self.checklogin != self.pers["typedvalutelogin"])
{
self iprintlnbold("login niepasuje:"+self.checklogin+" / "+ self.pers["typedvalutelogin"]);
continue;
}
if(self.checkpassword != self.pers["typedvalutepassword"])
{
self iprintlnbold("haslo niepasuje:"+self.checkpassword+" / "+ self.pers["typedvalutepassword"]);
continue;
}
}
else if(self.pers["typedvalutelogin"].size <= 3)
{
self iprintlnbold("atleast 3 letters");
continue;
}
}
DEBUG WITH DEVELOPER 1. AND ADD IPRINTS AND POST THEM HERE
no errors ;
on developer 1 / developer 2
You are totally unsuitable for scripting :(
At first:
What is checklogin?
Password contains only numbers? If no, why the hell you convert to integer the string?
Please use that frigging iPrintln() to print the values of the variables. We are not wizards who can read your minds.
And finally, write an acceptable script, because it's less than amateur.