
Originally Posted by
m0u53m4t
I didn't. Do I need a player array for every SRL script? I thought thats for only when you want them to switch accounts...
Some randoms in SRL are solved by looking for a portion of your name in it's main screen which is the "Nick". So you have to have a "Nick" bitmapmask created. There are 2 ways to do so.
First type is for players already logged in or one player scripts.
Code:
const
Nick = '';//3 -4 letters of a username
begin
NickNameBMP := CreateBitmapMaskFromText(.Nick, UpChars);
end.
2nd Type
Code:
procedure DeclarePlayers;
begin
HowManyPlayers := 8; // Set Number of Players here.
NumberOfPlayers(HowManyPlayers);
CurrentPlayer:= 0;
Players[0].Name :='username'; //UserName
Players[0].Pass :='passsss'; //Password
Players[0].Nick :='erna'; //Nick [3 - 4]letters
Players[0].Active:=True; //True or False, Activity.
end;
begin
DeclarePlayers;
LoginPlayer;
end.
LoginPlayer creates a bitmap mask of Players[CurrentPlayer].Nick. Player must start logged out. This is used with multi user compatibility.