Log in

View Full Version : Chat.simba Problems



xtrapsp
12-02-2012, 04:35 PM
Hey guys,

Having a few problems with SetChat();

This is my script so far:


{$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:
[Error] C:\Simba\Includes\SRL\SRL\core\chat.simba(13:3): Duplicate identifier 'CHAT_GAME' at line 12

Chat.simba:
(*
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;

Kasi
12-02-2012, 04:42 PM
Chat.simba is already included in SRL.simba, dont include it twice.

xtrapsp
12-02-2012, 04:42 PM
DERP. Ty. Repped