UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - sanya_rnd

It's simple as it is.

Just make class and put vars in it like:
Code Snippet
Plaintext
class <MyClass>():
    <var1> = <val1>
    ... etc
then just use it <MyClass>.<var1>

for structs it's pretty simple:
Code Snippet
Plaintext
class <MyStruct>():
    def __init__(x, y, z):
        self.<any_name> = x
        ....
10 years ago
Script seems to work, but source looks terrible. You have to read about structs at least. It's just a pain to see avoiding OOP in languange that mostly rely on it.
10 years ago
Loading ...