Author Topic: Whats wrong ???  (Read 548 times)

0 Members and 1 Guest are viewing this topic.

Offline mich1103

  • Flagrunner
  • ****
  • Posts: 557
  • Did you say chocolate ? O.o
    • ZoMbIe-DeStRoYeR pk server
Whats wrong ???
« on: February 22, 2010, 07:32:11 pm »
procedure OnPlayerSpeak(ID: Byte; Text: string);
begin
if Text = '!admin' then begin
   WriteConsole(ID, '#***********ADMIN***********#', $FFFF00);   
           WriteConsole(ID, 'PK0WN3D  ', $FF6600);
           WriteConsole(ID, '|fr|FishinShip  ', $FF6600);
           WriteConsole(ID, 'Insane sparten ', $FF6600);
           WriteConsole(ID, 'MasterChief's ', $FF6600);
           WriteConsole(ID, '.:TRD:.!shock!183|Lc|  ', $FF6600);
           WriteConsole(ID, '************************  ', $FF6600);
     end;
end;




What is wrong ?

Offline Hacktank

  • Camper
  • ***
  • Posts: 462
  • Soldat Scripter
    • HTZRPG
Re: Whats wrong ???
« Reply #1 on: February 22, 2010, 08:57:19 pm »
procedure OnPlayerSpeak(ID: Byte; Text: string);
begin
if Text = '!admin' then begin
   WriteConsole(ID, '#***********ADMIN***********#', $FFFF00);   
           WriteConsole(ID, 'PK0WN3D  ', $FF6600);
           WriteConsole(ID, '|fr|FishinShip  ', $FF6600);
           WriteConsole(ID, 'Insane sparten ', $FF6600);
           WriteConsole(ID, 'MasterChief''s ', $FF6600);
           WriteConsole(ID, '.:TRD:.!shock!183|Lc|  ', $FF6600);
           WriteConsole(ID, '************************  ', $FF6600);
     end;
end;

You need two 's to actually make it print one.