this.whatever = 201;
this.hi = "pootis";
this.whatever = 201;
this.hi = "pootis";
I saw. I conquered. I came.
for what it's worth, the curly bracket isn't a necessity depending on what is being done. it does, however, make things easier to read.
example:
PHP Code:
function onPlayerEnters() {
this.allowedlist = { "Torankusu", "Grief Hero" };
if (player.account in this.allowedlist) continue;
//more code can go here...
//ex, display an image, etc...
}
I never actually knew continue was a command. Would else still work with it though?
I saw. I conquered. I came.
Here you go, you are wanting to learn JS anyway, so here's a helpful page on topic of what you are asking:
http://www.w3schools.com/js/js_break.asp
I suggest looking into switch statement(s) as well.
Thanks john for the guide, now I understand more about gs2. Haven't tried scripting or practice scripting in a server but learning it just in-case to have knowledge on it.
Need Help? or Questions?Just Ask me and I will give the answer right awayWant to skype with me? wolverine_graal~Gani Artist