Hi.
I wrote an script but when run it show me this error :
'Right' is not declared
Expression must be of boolean type
Can't implicitly convert from 'bool' to 'int'.
this is my script:
can anyone help me?
I wrote an script but when run it show me this error :
'Right' is not declared
Expression must be of boolean type
Can't implicitly convert from 'bool' to 'int'.
this is my script:
Code: [Select]
bool Right = false;
void Main ()
{
if ((iKeyDown(iKeyCode("DIK_RIGHT")) || joyx==1) && Item==4 && Right==false && PressEnter==false)
{
RightMove = 1;
Item = 3;
Right = true;
iObjectShow (OBJ_330);
}
}
can anyone help me?