Показать сообщение отдельно
Старый 17.03.2010, 17:37   #328
Новичок
 
Регистрация: 17.03.2010
Сообщений: 1
Сказал Спасибо: 0
Имеет 0 спасибок в 0 сообщенях
leonid пока неопределено
По умолчанию

вот скрипт на автозаточку скажите плиз что не так. List index out of bounds (1).
delphi Код:
const    nik='Butovskiy';    Enchant=13; var    UseItem, EnchantItem: string;    Count, CurrentEnch: integer;    Timer01: TTimer; procedure Init; begin    Timer01:=TTimer.Create(nil);    Timer01.OnTimer:=@OnTimer01;    Timer01.enabled:=false;    Timer01.interval:=500; end; procedure OnTimer01(Sender: TObject); begin    buf:=UseItem;    SendToServerEx(nik);    buf:=EnchantItem;    SendToServerEx(nik); end; procedure Free; begin   Timer01.free;   count:=0;   CurrentEnch:=0; end; begin     if FromServer and (pck[1]=#$87) then        begin           CurrentEnch:=ReadD(2);           if CurrentEnch=Enchant then Timer01.enabled:=false;        end;     if FromClient and (pck[1]=#$19) then UseItem:=pck;     if FromClient and (pck[1]=#$5F) then EnchantItem:=pck;     if FromClient and (pck=#$34#$02#$00#$00#$00) then        begin           pck:='';           Timer01.enabled:=not(Timer01.enabled);        end; end.
когда ставлю галочку напротив скрипта выдаёт это List index out of bounds (1).

Последний раз редактировалось QaK, 20.03.2010 в 11:38.
leonid вне форума   Ответить с цитированием