strcpy(text , Reader.text);
strcpy(text , Password);
if(password == a953)Level = 2;
if (strcmp(LoginName.text, Name) == 0 && strcmp(LoginPass.text, Pass) == 0)
{
SendActivationEvent("Work");
Accepted = 1;
}
if (strcmp(LoginName.text, Name) > 0 , strcmp(LoginPass.text, Pass) > 0)
{
strcpy(Work.text, "Denied,\nwrong username or password");
Accepted = 0;
}
if (Accepted == 0)PlaySound2("data/buuuuh!.wav", 0.622222, 1, 0.000000);
if (Accepted == 1)PlaySound2("data/explode2.wav", 1.000000, 1, 0.000000);
Work.transp = 0;
if (Set == 1)
{
strcpy(Name, text);
saveVars("Name", "MyNameAndPassword");
strcpy(Pass, text);
saveVars("Pass", "MyNameAndPassword");
}
Users browsing this forum: No registered users and 1 guest