~GaLs~
† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
- Reaction score
- 180
JASS:
struct SomeStr
static method create takes nothing returns SomeStr
local SomeStr ss = SomeStr.allocate()
local boolean b = GetRandomInt(0,10) <=1
if b then
call ss.destroy()
return 0
endif
return ss
endmethod
endstruct
function Act takes nothing returns nothing
local SomeStr ss = SomeStr.create()
endfunction
What will happen? Will it work?
Will it work properly? I tested it on NewGen and no syntax appear.
Note** : This isn't the code I wanted to, it just a modified example of my code.