I keep getting this error saying if on line 8 is mismatched when it isn't could someone please help i dont know how to attach a picture
script:
scn dangerblock
I keep getting this error saying if on line 8 is mismatched when it isn't could someone please help i dont know how to attach a picture
script:
scn dangerblock
It's mismatched because you need another "endif" in that code. Each if statement is the start of a block which needs to be closed. Alternatively, you could put "if isActionRef Player" and "if doOnce == 0" into one check:
if (isActionRef Player) && (doOnce==0)
endif
Also, "if" isn't a variable, it's a keyword. You don't need to declare it as a short at the start of your script - unless there's something else you're doing in this script with it that you haven't pasted.