sondriz
10-03-2014, 14:31
Hey guys,
http://puu.sh/bXQpc/e9553094fe.png
Coming from Java, this is quite confusing. I understand that cases are not fallthrough which means I can do this:
switch(i) {
case 1, 2:
doSomething();
default:
doNothing();
}
Rather than this:
switch(i) {
case 1:
case 2:
doSomething();
break;
default:
doNothing();
break;
}
So there's no need to break the loop as far as I understand because it's terminated instantly?
Oh, and question two:
To check an AdminFlag for instance:
if (GetAdminFlag(client, AdminFlag.Custom4, NOTHING) {
I kind of guessed the AdminFlag thingy and Custom4 was just with some looking, I have no idea what AccessMode is so could someone please explain that? Also it would be nice if you could give me some sort of web page where I can check things like these.
I checked the SDK page, but I couldn't really find any elaborate information about functions like this. All I found out about it was that I need the accessmode, the client, and the specified adminflag as a parameter but I never said what they were.
So, if possible could you answer these questions and maybe give me some useful pages? I'm aware of the FAQ and I've read a bit of the introduction (planning to finish it).
Thank you, sorry for all these questions and it's probably very basic lol
http://puu.sh/bXQpc/e9553094fe.png
Coming from Java, this is quite confusing. I understand that cases are not fallthrough which means I can do this:
switch(i) {
case 1, 2:
doSomething();
default:
doNothing();
}
Rather than this:
switch(i) {
case 1:
case 2:
doSomething();
break;
default:
doNothing();
break;
}
So there's no need to break the loop as far as I understand because it's terminated instantly?
Oh, and question two:
To check an AdminFlag for instance:
if (GetAdminFlag(client, AdminFlag.Custom4, NOTHING) {
I kind of guessed the AdminFlag thingy and Custom4 was just with some looking, I have no idea what AccessMode is so could someone please explain that? Also it would be nice if you could give me some sort of web page where I can check things like these.
I checked the SDK page, but I couldn't really find any elaborate information about functions like this. All I found out about it was that I need the accessmode, the client, and the specified adminflag as a parameter but I never said what they were.
So, if possible could you answer these questions and maybe give me some useful pages? I'm aware of the FAQ and I've read a bit of the introduction (planning to finish it).
Thank you, sorry for all these questions and it's probably very basic lol