SRL Archive - Help and Support

Player Array - Help Me Please !


Avaphi

2006-05-27 03:33:30

Ok hi there peeps of SRL. I have a problem, I have a powerminer as some of you may know. I am planning on making it better and better, but before I do that I want to become an srl member :( . I think I need to get a working player array into my script, to qualify. Now I am requesting an srl member who knows alot about player arrays, That would be willing to help me edit my script. See, for some reason the powerminer doesnt work with player array functions, But without them, it works great. Alls I am asking is some help for someone who knows alot about player arrays :o

leader

2006-05-27 03:44:47

I think you should release the script first. Then later on add the arrays. It depends on how you want to use the player arrays.

Here are some examples.


Procedure DeclarePlayers;

Begin
HowManyPlayers := 2;
NumberOfPlayers( HowManyPlayers );
CurrentPlayer := StartPlayer;

Players[0].Name := 'Username7';
Players[0].Pass := 'Password7';
Players[0].Nick := 'rna';
Players[0].Active:=True;
Players[0].String1 := 'Copper';
Players[0].String2 := 'Iron';
Players[0].String3 := 'Copper';
Players[0].Boolean1 := True;

Writeln( IntToStr ( HowManyPlayers ) + ' Players' );
End;


procedure DeclarePlayers;
begin
HowManyPlayers := 1; // Set Number of Players here.
NumberOfPlayers(HowManyPlayers);
CurrentPlayer:= StartPlayer;

Players[0].Name :='Username7';
Players[0].Pass :='Password7';
Players[0].Nick :='rna';
Players[0].Ore :='copper'; //OreType, 'iron', 'tin', 'copper', or 'coal'
Players[0].Active:=True;
//Add more playerarrays if needed.}
end;


procedure DeclarePlayers;
begin
HowManyPlayers:=6; //Keep at 6, don't change or else it won't work

NumberOfPlayers(HowManyPlayers);

Players[0].Name :=''; //Put your username
Players[0].Pass :=''; //Put your password
Players[0].Nick :=''; //Put a unique part of your name, 3-4 letters; Questions? SRL Manual
Players[0].Active:=False; //Leave unless not wanted to log in


end;

Avaphi

2006-05-27 13:38:57

That is not what I am having troubles with, Ben said I wasnt using login or something right in my main loop :( Anyone help :confused:

leader

2006-05-27 15:46:24

Oh here use these. I don't know if you have SetupSRLMining or SetupSRL. If you don't have them then take them out. It should work now.


Begin
ActivateClient;
SetupSRLMining;
SetupSRL;
DeclarePlayers;
CurrentPlayer:=StartPlayer;
LoginPlayer;

Avaphi

2006-05-27 15:57:05

Ok I solved the problem my self. Thanks anyways

leader

2006-05-27 16:26:33

No problem