View Full Version : SRL simple I think; Im new :/
Nynjal
12-31-2011, 06:21 AM
{$i srl/srl/misc/smart.scar}
{$i srl/srl.scar}
when I put that in the script exactly as I am supposed to (in any script), the letters do not turn blue like they are supposed to, they are red. I do have srl.scar in the C:/simba/includes/srl/ though. Do I have to make it look in a specific directory somehow? I'm new to all this, I am a scripter from RSbot and buddy :P hi!
Dynamite
12-31-2011, 06:23 AM
Program new;
{.include srl/srl/misc/smart.scar}
{.include srl/srl.scar}
That work?
-Boom
Nynjal
12-31-2011, 06:25 AM
Program new;
{.include srl/srl/misc/smart.scar}
{.include srl/srl.scar}
That work?
-Boom
No :/ i forgot to say I already declared the program above it. Here's a simple program that doesn't work and has red letters:
program DeclarePlayers;
{$i srl/srl/misc/smart.scar} // This is how we include SMART; it HAS to be included BEFORE SRL!
{$i srl/srl.scar}
procedure DeclarePlayers;
begin
HowManyPlayers := 1; // This is set to the total amount of players (more on multiplayer later ;)), for now, just keep it set as 1
NumberOfPlayers(HowManyPlayers); // This is a procedure in SRL which sets up player arrays (also, more on that later), this will always be the same
CurrentPlayer := 0; // This is the player to start with; the first player will always be 0 (you'll find out when you learn all about arrays)
Players[0].Name := ''; // Username
Players[0].Pass := ''; // Password
Players[0].Nick := ''; // 3-4 lowercase letters from username; used for random event detection
Players[0].Active := True; // Set to true if you want to use Player 0
Players[0].Pin := ''; // Leave blank if the player doesn't have a bank pin
end;
begin
// These 4 lines HAVE to be set BEFORE you call SetupSRL;
Smart_Server := 152;
Smart_Members := False;
Smart_Signed := True;
Smart_SuperDetail := False;
ClearDebug;
SetupSRL;
DeclarePlayers; // Calls the procedure, you can't forget this!
LoginPlayer; // You want your player to login, right?
end.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.