Hi
I am having some trouble converting RI Primary Needs & am hoping for some help or guidance. I am getting 1 error message when I try to recompile the scripts. The message says "Invalid Begin/End block structure on line 19" I can see the problem but I don't know how to fix it. I can see that in that Block I have 1 IF and 2 EndIf's. I know that is not the right format for the GECK. I am guessing I need either to add an ElseIf statement or maybe just add an "If" But I don't know what the proper one to use is or the proper form. Here is the script. Any help would be greatly appreciated.
Thanks
ScriptName RIPortableMatScript
short iAdjusted
short iActivate
short CurAngle
begin GameMode
if iAdjusted == 0
set iAdjusted to 1
set CurAngle to GetAngle z
SetAngle z CurAngle
SetScale 0.1
Activate Player
Set iActivate to 1
Return
endif(iActivate == 1)
Disable
MarkForDelete
EndIF
end
begin OnActivate Player
Activate
end