P1nky
2012-10-14 21:31:34
i have a question, how do i reopen smart when I call SmartKillClient(SmartCurrentClient);?
I asked on IRC, but no one was active :{
I asked on IRC, but no one was active :{
2012-10-14 21:31:34
2012-10-14 21:34:11
2012-10-14 21:37:26
From: NKN
You didn't wait long enough. </3
Ask on Skype next time toooo.
Check how SRL Six Hour Fix does it.
Refresh := SmartGetRefresh;
SmartKillClient(SmartCurrentClient);
{$IFDEF SMART}
{$IFDEF SIMBAMAJOR980}
Smart_Server := 2;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
{$ENDIF}
{$ENDIF}
SmartSetRefresh(Refresh);
2012-10-14 22:48:14
Function ResetSmart;
var
T: Integer;
Refresh: Integer;
Begin
T:= GetTimeRunning;
Refresh := SmartGetRefresh;
{$IFDEF SMART_GRAPHICS}
SMART_FreeDebug;
SMART_SetupDebug;
{$ENDIF}
SmartKillClient(SmartCurrentClient);
SetupSmart(Smart_ForceNew);
Repeat
{$IFNDEF SIMBAMAJOR980}
{$IFDEF SMART}
If Smart_FixSpeed then
FixSmartSpeed;
{$ENDIF}
{$ENDIF}
Wait(100);
If (GetTimeRunning - T) > 120000 Then
Break;
Until(RSReady);
SmartSetRefresh(Refresh);
End;
2012-10-15 00:03:40
SRL Compiled in 16 msec
Loading SMART: [url]http://world29.runescape.com/f5350929944344254789[/url]
[email]random2@gmail.com[/email]
SRL Compiled in 0 msec
Loading SMART: [url]http://world8.runescape.com/f5771527609296357[/url]
[email]random1@gmail.com[/email]
SRL Compiled in 0 msec
2012-10-15 15:30:45
L := Length(EmailArray);
For I := 0 to L do
writlen('Account ' + IntToStr(I) ':' + EmailArray[i]);
2012-10-15 16:27:32
program new;
type
TAccount = record
Name: String;
Email: String;
Pass: String;
end;
const
SAVEFILE = 'accounts.ini';
procedure SafeAccount(acc: TAccount);
var
FilePointer, i: Integer;
begin
FilePointer := -1;
if (not(FileExists(ScriptPath +SAVEFILE))) then
begin
FilePointer := CreateFile(ScriptPath + SAVEFILE);
if(FilePointer > -1) then
CloseFile(FilePointer);
end;
WriteINI('account:'+acc.Name, 'email', acc.Email, ScriptPath + SAVEFILE);
WriteINI('account:'+acc.Name, 'pass', acc.Pass, ScriptPath + SAVEFILE);
end;
var
a, aa: TAccount;
begin
a.Name := 'Bert';
a.Email := 'Bert@CU2.nl';
a.Pass := 'FlapOor';
aa.Name := 'Barty';
aa.Email := 'BillyBoy@Microsoft.com';
aa.Pass := '26061992';
SafeAccount(a);
SafeAccount(aa);
end.
2012-10-16 00:45:15
2012-10-16 05:54:21
2012-10-16 07:11:38