![]() |
Gs1/gs2?
I dont know the dif between GS1 and GS2...
so is this GS1 or 2?: PHP Code:
|
GS1
GS2 would be: PHP Code:
|
so if gs2 is newer then why is it more complex like instead of "if" u use function?
it seams like a downgrade... does it have more posiblilitys or something? |
Quote:
x-x Go read on object-oriented programming. |
Quote:
Besides, you cant "call" if (created), HOWEVER, this becomes possible in gs2 PHP Code:
|
Quote:
GS1: PHP Code:
PHP Code:
|
Quote:
Since the language is dynamically typed, you don't have to worry about #v(), #s() and #I(). Just variablename = value;. Because functions are more powerful in GScript2, with return values, public and "player" functions, it's much easier to organise and reuse code. Because things are objects, they're much easier manipulated, used and understood (i.e. the player is the 'player' object, the NPC or current object is 'this', etc.), and scoping is much easier defined. It all just makes more sense. |
| All times are GMT +2. The time now is 04:53 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.