GTFO_Jagex
2015-01-04 09:06:32
Can anyone explain what's wrong , I tried following https://villavu.com/forum/showthread.php?t=107572&highlight=srl+playerform+guide this guide but everything i try seem to cause an error
procedure declarePlayers();
var
i: integer;
begin
players.setup(playerForm.players); // load the SPF players from the SRL Player Manager
currentPlayer := 0; // player to use first
// set player attributes based on the settings from the form
for i := 0 to high(players) do
with players[i] do
begin
// convert the integers
integers[0] := strToInt(playerForm.players[i].settings[0]);
integers[1] := strToInt(playerForm.players[i].settings[1]);
integers[2] := strToInt(playerForm.players[i].settings[2]);
// booleans
booleans[0] := strToBool(playerForm.players[i].settings[4]);
end;
end;
procedure initPlayerForm();
begin
with playerForm do
begin
name := 'SRL Player Form ~ Test'; // the title of the SPF, usually the name of your script
scriptHelpThread := ''; // a link to a help thread, if set to '' will link to my setup guide
editBoxLabels := ['Minutes to run', 'Minutes before breaking', 'Logs to burn']; // edit boxes are created for each array element
editBoxDefaults := ['80', '5', '1000']; // optional default values for each edit box; array length must equal editBoxLabel length
checkBoxLabels := ['Find Spirit?']; // same as editBoxLabels but for check boxes
checkBoxDefaults := ['False'];
end;
end;

Its like this for me
at the top of your script, and make sure the player form one goes after the SRL One, and then your main loop should look somethin like:
