Log in

View Full Version : Error:Could not call proc at line 128



laakerules
01-15-2012, 04:07 PM
heres line 128


CurFP := WhatPlayer;
PlayerList.ItemIndex := CurFP; // *
Edits[0].Text := FP[CurFP].Name;
Edits[1].Text := FP[CurFP].Pass;
Edits[2].Text := FP[CurFP].Nick;
Edits[3].Text := FP[CurFP].Pin;
ComboBoxes[0].Text := FP[CurFP].Loads;
ComboBoxes[1].Text := FP[CurFP].Active;
Buttons[3].Enabled := (GetArrayLength(FP) > 1);//Here is 128
PlayerList.Clear;

Brandon
01-15-2012, 04:24 PM
It would have been REALLLLLYYYY Helpful if you actually posted the records you made -____-


program new;

type
Button = record
Enabled: Boolean;
end;

type
Players = record
Name, Pass, Nick, Pin, Loads, Active: string;
end;

type
PEdits = record
Text: String;
end;

type
CBoxes = record
Text: string;
end;


var
Buttons: Array of Button;
FP: Array of Players;
CurFP: Integer;
Edits: Array of PEdits;
ComboBoxes: Array of CBoxes;
begin
SetLength(Edits, 4);
SetLength(ComboBoxes, 2);
SetLength(Buttons, 3);
SetLength(FP, 1);

Edits[0].Text := FP[CurFP].Name;
Edits[1].Text := FP[CurFP].Pass;
Edits[2].Text := FP[CurFP].Nick;
Edits[3].Text := FP[CurFP].Pin;
ComboBoxes[0].Text := FP[CurFP].Loads;
ComboBoxes[1].Text := FP[CurFP].Active;
Buttons[3].Enabled := (GetArrayLength(FP) > 1);//Here is 128
end.

laakerules
01-15-2012, 06:18 PM
Sorry was goign to but then my old method i was using hit me instantly of how to fix and that worked. now all i need to figure out is the stupid chooseoption not working and then v5 of my script will be released.