I encountered a problem, when I was converting some old pol 95 scripts to the pol-core-Beta-x64-2016-10-15.
Using two constants within one (if (1 == 1)), generates an internal problem in the compiler.
The program does not know how to perform the function.
(PlayObjectCenteredEffectex), and when I put it.
(Print ("" + PlayObjectCenteredEffect (...))
Or the program closes.
20170410134009-0.dmp
Code: Select all
Use os;
Use uo;
program usea( character )
erro( Target( character ) );
endprogram
function erro( character )
if( 1 == 1 )
if(1 == 1)
PlayObjectCenteredEffectex(character,14089,0,30);
elseif( 2 == 1 )
print(2);
endif
endif
endfunction
Code: Select all
Use os;
Use uo;
const A := 1;
const B := 1;
const C := 2;
program usea( character )
erro( Target( character ) );
endprogram
function erro( character )
if( A == B )
if(B == A)
//sleepms(1);
print(""+PlayObjectCenteredEffect(character,14089,1,30));// CRASH POL
//PlayObjectCenteredEffect(character,14089,0,30);
elseif( B == C )
print(2);
endif
endif
endfunction
Can someone tell me if this is normal?
It is forbidden to place two constants inside if (), example (if (1 == 1))?
i ADD arquive CRASH 20170410140946-0.dmp