I have an existing modification to the v115 source which reads an ip into the ipaddress$ variable from an external text file. it works fine but I have a launcher that can read and write to the fpi files, and what I have done is added 2 commands to the source.
hostip and joinip
these I want to collect an ip from (joinip=xxx.xxx.x.x)
the error I get is :Runtime Error 118 - array does not exist or array subscript out of bounds at line 11281
my code
Two commands added
actword$(AIACTHOSTIP)="hostip"
actword$(AIACTJOINIP)="joinip"
case AIACTHOSTIP:
tindex=aiactionseq(seq).value
serveripaddress$=actstring$(tindex)
endcase
case AIACTJOINIP:
tindex=aiactionseq(seq).value
ipaddress$=actstring$(tindex)
endcase
and the fpi script would be something like this
;Header
desc = Arena Page Wizard
;Script
:state=0:joinip=192.xxx.x.x,state=1
:state=1:joingame,state=2
:state=2:destroy
I would appreciate any help on this.
Thanks , Dave