[jass]function DoNothingBJ takes nothing returns nothing
call CommentString("Проверка подсветки BJ и строк")
//А также комментариев
call DoNothing()
endfunction[/jass]Добавлено (29.12.11, 09:43)
---------------------------------------------
[jass]#if WAR3VER == WAR3VER_23
#error "Wrong version"
#elseif WAR3VER == WAR3VER_24
//Все нормально
#endif[/jass]
Добавлено (29.12.11, 09:47)
---------------------------------------------
[jass]/*
* MyLibrary vX.XX
*
* Description of my library.
*
* © Year Author \\ Ternox.com
*
*/[/jass]
Добавлено (29.12.11, 09:51)
---------------------------------------------
[jass]call IssueImmediateOrderById(GetTriggerUnit(), 851972 /*stop*/)[/jass]
Добавлено (29.12.11, 11:21)
---------------------------------------------
[jass]function TestSpaces takes nothing returns nothing
if true then
call DoNothing()
endif
loop
call DoNothing()
exitwhen true
endloop
endfunction[/jass]
Добавлено (29.12.11, 11:24)
---------------------------------------------
[jass]FALSE TRUE JASS_MAX_ARRAY_SIZE bj_MISSION_INDEX_T01 bj_lastCreatedUnit bj_mapInitialPlayableArea[/jass]
Добавлено (29.12.11, 11:59)
---------------------------------------------
[jass]void MyFunc(void) {
unit u = GetTriggerUnit(), \
u2 = GetSpellTargetUnit()
if true { DoNothing() }
KillUnit(u); KillUnit(u2)
u = null; u2 = null
}[/jass]
Добавлено (29.12.11, 12:53)
---------------------------------------------
[jass]key thistype[/jass]
Добавлено (29.12.11, 12:55)
---------------------------------------------
[jass]thistype.abc = 0
this.def = 1
abc.thistype
def.this[/jass]
Добавлено (29.12.11, 12:56)
---------------------------------------------
[jass]define GetHandleIdBJ(h) = GetHandle##IdBJ(h)[/jass]
Добавлено (29.12.11, 13:13)
---------------------------------------------
[jass]struct MyStruct extends array
private static method onInit takes nothing returns nothing
call DoNothing()
endmethod
endstruct[/jass]
Добавлено (29.12.11, 13:19)
---------------------------------------------
[jass]//! zinc
library Test {
function onInit() {
boolean b = true;
integer i;
for (0 <= i < 16)
BJDebugMsg(I2S(i));
if (b && true || false)
DoNothing();
}
}
//! endzinc[/jass]
Добавлено (29.12.11, 13:50)
---------------------------------------------
[jass] native GetPlayerUnitTypeCount takes player p, integer unitid returns integer
native GetUnitGoldCost takes integer unitid returns integer
native GetUnitWoodCost takes integer unitid returns integer
native GetUnitBuildTime takes integer unitid returns integer
native IsTowered takes unit target returns boolean
native CreepsOnMap takes nothing returns boolean
native UnitAlive takes unit id returns boolean[/jass]
Добавлено (29.12.11, 14:14)
---------------------------------------------
[jass]function test takes nothing returns nothing
call DoNothing()
endfunction[/jass]
Добавлено (29.12.11, 14:16)
---------------------------------------------
[jass]function test2 takes nothing returns nothing
call DoNothing()
endfunction[/jass]
Добавлено (29.12.11, 14:17)
---------------------------------------------
[jass]function test2 takes nothing returns nothing
call DoNothing()
endfunction[/jass]