Results 1 to 3 of 3

Thread: Chat.simba Problems

  1. #1
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default Chat.simba Problems

    Hey guys,

    Having a few problems with SetChat();

    This is my script so far:

    Simba Code:
    {$DEFINE SMART}
    {$i SRL\SRL.simba}
    {$i SRL\SRL\core\chat.simba}

    Const
     SRLStats_Username = ''; // Your SRL Stats Username
     SRLStats_Password = ''; // Your SRL Stats Password
     Choice = 'FC'; //FC = Friendschat / CC = Clan Chat


    Function ChooseChat: String;
    begin
        if Choice = 'FC' then
          begin
            writeln('Friends Chat');

          end else
            begin
              writeln('Clan Chat');
              Setchat(3);
            end;
    end;

    begin
      ChooseChat;
    end.

    However it throws this error and opens chat.simba:
    Simba Code:
    [Error] C:\Simba\Includes\SRL\SRL\core\chat.simba(13:3): Duplicate identifier 'CHAT_GAME' at line 12

    Chat.simba:
    Simba Code:
    (*
    Chat
    ====

    The Chat include contains all chat-related functions

    .. contents::

    *)


    const
      CHAT_GAME    = 0; // <<< THIS IS THE ERROR LINE
      CHAT_PUBLIC  = 1;
      CHAT_PRIVATE = 2;
      CHAT_FRIENDS = 3;
      CHAT_CLAN    = 4;
      CHAT_TRADE   = 5;
      CHAT_ASSIST  = 6;

  2. #2
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    Chat.simba is already included in SRL.simba, dont include it twice.

  3. #3
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •