TomTop
2015-02-18 15:27:57
Hey,
I have a problem where my checkboxes on the playerform always return false, no matter if they are checked or not, always false.
My code:
Don't know what's wrong :S
I have a problem where my checkboxes on the playerform always return false, no matter if they are checked or not, always false.
My code:
var
CHECKBOX: boolean;
procedure initPlayerForm();
begin
with playerForm do
begin
name := 'Player form';
scriptSettingsPath := AppPath + 'Scripts\Settings.txt';
editBoxLabels := ['World', 'number'];
editBoxDefaults := ['58', '8'];
checkBoxLabels := ['Checkbox'];
checkBoxDefaults := ['True'];
end;
end;
procedure declarePlayers();
begin
wait(randomRange(1000,2000));
players.setup(playerform.players);
currentPlayer := 0;
with players[0] do
begin
CHECKBOX := StrToBool(playerForm.players[0].settings[2]);
end;
end;
writeLn(CHECKBOX);
Don't know what's wrong :S