PDA

View Full Version : Need help finishing this code. {Found the Code That Will Fix it I Just Need Help}



Shadow Ranqe
June 18th, 2010, 11:43
Okay So I finally figured out where I was going wrong with my old code. The client part was coded right, it was what I put in the server.



// mod/admin level crown fix -bakatool
if (playerRights == 3)
out.write(6);
else if (playerRights == 2)
out.write(2);
else if (playerRights == 1)
out.write(1);
else if(donator == 1 && playerRights == 0)
out.write(7);
else if(theowner == 1 && playerRights == 0)
out.write(5); <--------------------WHAT SHOULD THAT BE?

else
out.write(playerRights);

out.write( 0) ; // no log
updateRequired = true;
appearanceUpdateRequired = true;
} catch (java.lang.Exception __ex) {
// error at finalizer means auto destruct no exceptions
// -bakatool
disconnected = true;
destruct();
}
}


out.write(5); is what I changed it to. It was out.write(7); and it would show the donator crown. And I don't know what it's writing out O_o What should I change/add?

Sunni
June 18th, 2010, 13:35
It was the 7 or what?I don't know you can try this;



if(theowner == 1 && playerRights == 3)
out.write(3);


I'm guessing this is your owner command..

Shadow Ranqe
June 18th, 2010, 19:56
Didn't work :(

Sunni
June 18th, 2010, 23:12
Well make sure you character playerights is three before using the command.

Shadow Ranqe
June 21st, 2010, 01:12
I do but it still doesn't work. When I have 3 player rights it won't let me log in. =[