• Log in or sign up for an account here: https://www.sythe.org/login

Need Help [ Simba ]

OmqiHybrid

Member

Banned
Joined
May 27, 2012
Sythe Gold
0
Messages
61
Getting this error.
HowManyPlayers := 0;
NumberOfPlayers(HowManyPlayers); 0;
CurrentPlayer := i dont dd0s;

with Players[1] do
begin
Name := 'omgihaxxxx';
Pass := 'notforyou';
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 := false;
Active := True;

[Error] (42:3): Unknown identifier 'HowManyPlayers' at line 41
Compiling failed.

What should i put for howmanyplayers?
__________________
 
Code:
HowManyPlayers := 0;  //So you have 0 players?  This should be 1...
NumberOfPlayers(HowManyPlayers); 0;   //Why is there a "0;" here?
CurrentPlayer := i dont dd0s;   //For the first player (or integer) in any array, start with 0, not "i dont dd0s"...

with Players[1] do  //Again, your first player is the first in an array, and arrays start at [0], not [1]
begin
Name := 'omgihaxxxx';
Pass := 'notforyou';
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 := false;
Active := True;

Hopefully that explains it. Anyways, try this instead:
Code:
Procedure DeclarePlayers;
  begin
    HowManyPlayers := 1;
    NumberOfPlayers(HowManyPlayers);
    CurrentPlayer := 0;
    with Players[0] do
    begin
      Name         := '';
      Pass         := '';
      Pin          := '';
      BoxRewards   := ['XP', 'Lamp', 'Book', 'mote', 'ostume', 'ssence'];
      LampSkill    := SKILL_RUNECRAFTING;
      Member       := False;
      Active       := True;
    end;
  end;
 
Runescape Gamblingrunescape gambling
Back
Top