Page 4 of 10

Re: ManiaScript Documentation

Posted: 27 Feb 2013, 16:33
by w1lla

Re: ManiaScript Documentation

Posted: 27 Feb 2013, 21:26
by TMarc
veel dank aan de steek is op u! :thumbsup:

Re: ManiaScript Documentation

Posted: 27 Feb 2013, 21:53
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.

Re: ManiaScript Documentation

Posted: 10 Apr 2013, 14:43
by w1lla

Re: ManiaScript Documentation

Posted: 24 Apr 2013, 15:16
by w1lla

Re: ManiaScript Documentation

Posted: 28 Apr 2013, 18:32
by under
Void UpdateUI(Boolean _Forced)
(script "siege" ligne 1910)

un boolean c'est pas "true" ou "false" normalement ?

Re: ManiaScript Documentation

Posted: 28 Apr 2013, 20:40
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

Re: ManiaScript Documentation

Posted: 28 Apr 2013, 21:16
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" ?

Re: ManiaScript Documentation

Posted: 28 Apr 2013, 21:47
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);
}

Re: ManiaScript Documentation

Posted: 30 Apr 2013, 20:33
by under
thanks