Originally Posted by
Shuttleu
hmmm... just found a problem which i never noticed yesterday
and the retarded thing is there is no reason for the error, literally there is no reason
~shut
EDIT:
its this
ThePlayers[i].Strings[j]:= ReadINI(IntToStr(i), 'String'+IntToStr(j), INIPath);
now upon the first run of the form there are no errors
there are also no errors after adding players or changing vars
but if you delete a player it fails
now back to the line
ThePlayers[i].Booleans[j]:= StrToBool(ReadINI(IntToStr(i), 'Boolean'+IntToStr(j), INIPath));
both i and j are both 0 and through debugging ThePlayers[i].Strings has a length of 1
but for some reason it comes up with a access violation error
if i change it to
ThePlayers[i].Strings[j]:= 'String';
it still has the error
and it fails before setting the var while i and j are both still 0
but
ThePlayers[i].Strings:= ['String'];
does not