jass - Страница 2 - Форум


Правила форума ·

  • Страница 2 из 2
  • «
  • 1
  • 2
Форум » Сайт » Общение » jass
jass

SirNikolas

#17
[jass]onInit onDestroy create destroy allocate deallocate evaluate execute super name SCOPE_PREFIX SCOPE_PRIVATE[/jass]

Добавлено (05.01.12, 08:15)
---------------------------------------------
[jass]//! zinc
library TestSpacesAgain {
function onInit() {
integer i;
if (false)
DoNothing();
else if true
DoNothing();
else {
DoNothing();
DoNothing();
}
for (0 <= i < 16)
DoNothing();
while (i >= 0) {
DoNothing();
i = i - 1;
}
}
}
//! endzinc[/jass]

"I will make this the first approved cJass-only resource here on the Hive" - Bribe about ALL.

[DUОS]

#18
[jass]string WeCanUseTab() {
return "Посоны, мы можем юзать таб в этом окне для табуляции"
}[/jass]
Сообщение отредактировал Simplar - Чт, 05.01.12, 19:38
Школа - это место, где шлифуют булыжники и портят алмазы. © Роберт Ингерсолл

SirNikolas

#20
[jass] //! zinc
library TestOfUsingTab {
function onInit() {
BJDebugMsg("OMG!!!");
}
}

library TestOfUsingSpaces {
function onInit() {
BJDebugMsg("OMG в квадрате");
}
}
//! endzinc[/jass]

Добавлено (07.01.12, 11:35)
---------------------------------------------
[jass]function GetS takes nothing returns string
return "VeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongString"
endfunction

function IsPointInTriangle takes real x1, real y1, real x2, real y2, real x3, real y3, real x, real y returns boolean
local boolean b = ((x2 - x) * (y3 - y2)) - ((x3 - x2) * (y2 - y)) >= 0
return (((x1 - x) * (y2 - y1)) - ((x2 - x1) * (y1 - y)) >= 0) == b and b == (((x3 - x) * (y1 - y3)) - ((x1 - x3) * (y3 - y)) >= 0)
endfunction[/jass]

Добавлено (07.01.12, 11:37)
---------------------------------------------
[jass]function TestNewLinesInStrings takes nothing returns nothing
return "
1234567890
----------

qwertyuiop
"
endfunction[/jass]

"I will make this the first approved cJass-only resource here on the Hive" - Bribe about ALL.
Форум » Сайт » Общение » jass
  • Страница 2 из 2
  • «
  • 1
  • 2
Поиск: