View Full Version : [Bug] [Error] (46:8): Unknown identifier 'Players' at line 45 Compiling failed.
Does anyone know how to fix this?
Is this an antileech from a script? Post the script (or at least line 45), probably a misspell of an actual procedure (eg. DeclarePlayers)
program PreemptibleRuneSpan;
{$DEFINE SMART}
{$include_once SRL/SRL.simba}
{$include_once SRL/SRL/Misc/Debug.simba}
{$include_once SRL/SRL/core/animation.simba}
{$include_once SRL/SRL/skill/magic.simba}
{$include_once SRL/SRL/misc/paintsmart.simba}
// stats
const SRLStats_User = 'Anonymous'; // Your SRL Stats ID (If you dont have one then just leave it as it is)
const SRLStats_Password = 'anon1337'; // Your SRL Stats Password (If you dont have one then just leave it as it is)
// this is for getting you back to runespan, please note that it is not fully implemented
// we should first try equipped hood, if not found, we will try to locate bank and get it from there
// if not possible, we will try to use fairy rings or walker
const CAN_USE_FAIRY_RINGS = False; // eventually this option will be autodetected i hope but for now
// leave as false, because i will first focus on draynor walker
// set to true if you have fairy 3 or have 2 and are equipped
// set to false when you don't have fairy or want to walk instead
const ONSCREEN_STATS = True; // set to false if it bothers you, or click Disable Debug button
const ONSCREEN_FOLLOW_MODELS = True; // set to false if you don't want to see models being followed
const ONSCREEN_TRACK_BOUNDARY = True; // turn off if you don't care to see boundary cube-like map projection points
// not yet implemented in this verion
const CLICKBAN_ENABLED = True; // essentially if we click on something and nothing happens, we shouldn't click on it again
const TAKES_BREAKS = True; // do we take breaks
const BREAK_TIME = 300; // number of minutes before breaks, midpoint
const BREAK_TIME_SPREAD = 10; // means +/- 10 minutes
const BREAK_DURATION = 8; // break time is always +/- 25% just because we don't need more input
const SWITCH_WORLDS_BREAK = True; // switch worlds after a break
const KEEP_DEBUG = False; // if you set it to true, the little window will not clear on each stat report
const SMART_SERVER_TO_USE = 1; // so that you can change it quickly if your
// cache is messed up and you get "no applet" message
//////////////////////////////////////
// SERIOUSLY only one supported atm //
//////////////////////////////////////
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Name := 'Name';
Pass := 'Pass';
Pin := ''; // right now banking for hood not supported, might be in future
// so you don't need to fill it just yet
BoxRewards := ['XP', 'Lamp', 'Book', 'mote', 'ostume', 'ssence'];
LampSkill := SKILL_RUNECRAFTING;
Member := True;
Active := True;
end;
end;
putonajonny
06-13-2012, 08:48 PM
Paste the script in [SIMBA] tags please :)
Line 44-46:
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Nothing wrong?
Added the mainloop and script compiles fine for me.
Did u accidentally delete "NumberOf"?
Hazzah
06-14-2012, 07:07 AM
Make sure everything is up to date. Tools -> update (should get your the newest Simba) and then Update SRL, SPS, ect.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.