ManiaScript Documentation

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: ManiaScript Documentation

Post by w1lla »

TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
User avatar
TMarc
Posts: 15255
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: ManiaScript Documentation

Post by TMarc »

veel dank aan de steek is op u! :thumbsup:
User avatar
Xymph
Posts: 1399
Joined: 15 Jun 2010, 20:35
Contact:

Re: ManiaScript Documentation

Post by Xymph »

TMarc wrote:veel dank aan de steek is op u! :thumbsup:
Hmm, leuk geprobeerd, maar geen sigaar voor u. ;)
Nice try, but no cigar.
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: ManiaScript Documentation

Post by w1lla »

TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: ManiaScript Documentation

Post by w1lla »

TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
User avatar
under
Posts: 382
Joined: 22 Apr 2011, 18:12

Re: ManiaScript Documentation

Post by under »

Void UpdateUI(Boolean _Forced)
(script "siege" ligne 1910)

un boolean c'est pas "true" ou "false" normalement ?
∀ g eH, ∃! f eH tq (f c g)U(g c f), f =/= g, g U f = <3 ,H = Humain, g = garçon, f = fille
User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: ManiaScript Documentation

Post by steeffeen »

under wrote:
Void UpdateUI(Boolean _Forced)
(script "siege" ligne 1910)
un boolean c'est pas "true" ou "false" normalement ?
where's the problem?
"_Forced" is a parameter name, it will have the value True or False on call of the method
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    User avatar
    under
    Posts: 382
    Joined: 22 Apr 2011, 18:12

    Re: ManiaScript Documentation

    Post by under »

    under wrote:
    Void UpdateUI(Boolean _Forced)
    (script "siege" ligne 1910)

    un boolean c'est pas "true" ou "false" normalement ?
    With "boolean" we must use "true" or "false" ?why there is "_Forced" ?
    ∀ g eH, ∃! f eH tq (f c g)U(g c f), f =/= g, g U f = <3 ,H = Humain, g = garçon, f = fille
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2463
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: ManiaScript Documentation

    Post by steeffeen »

    under wrote:With "boolean" we must use "true" or "false" ?why there is "_Forced" ?
    well i'm a noob at explaining things but do you even have programming experience?

    Code: Select all

    Void DoThings(Boolean _Name) {
    if (_Name) {
    [do..things...];
    } else {
    [do..other..things...];
    }
    means that there is a method called "DoThings" to which you need to pass a value of the given type Boolean which will be stored in the parameter called "_Name"
    inside the method the value (True or False) can be accessed through the parameter name "_Name"

    example call:

    Code: Select all

    if (1 == 1) {
    DoThings(True);
    }
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      User avatar
      under
      Posts: 382
      Joined: 22 Apr 2011, 18:12

      Re: ManiaScript Documentation

      Post by under »

      thanks
      ∀ g eH, ∃! f eH tq (f c g)U(g c f), f =/= g, g U f = <3 ,H = Humain, g = garçon, f = fille
      Post Reply

      Return to “ManiaScript”

      Who is online

      Users browsing this forum: No registered users and 1 guest