Problems using block
So i have this small problem =), any help i can get is greatly appriciated
The block definition
block Tpoint {
DWord x;
DWord y;
}
The code
Tpoint* myPoint;
myPoint = new Tpoint;
push edi;
edi = myPoint as Tpoint;
GetCursorPos(edi);
// Do something with the position here
edi as nothing;
pop edi;
delete myPoint;
The error from compiler
Ziron Compiler 1.1.27.6
Copyright (C) 2011. OverHertz Ltd. All rights reserved.
--------------------------------------------
2011-11-22 18:23:54
--------------------------------------------
PlugSys: Emit plugin has loaded!
--------------------------------------------
[3,22]: Expected variable or local variable or local parameter but found == in [macro new]
Code:
$if deftype($dt) == 'int':
Press the [enter] key to exit.
"Lerning new things is what life is all about, if you are always doing the same old things day in and day out you might aswell just kill yourself." - ME d^_^b