What's wrong with this code?
procedure OnPlayerSpeak(ID: byte; Text: string);
begin
case Text of
!info:
begin
WriteConsole(ID,'List of avaliable commands/Lista dostepnych komend:',$00FF0000);
WriteConsole(ID,'!admin - Shows list of admins / Pokazuje liste adminow',$00FF0000);
WriteConsole(ID,'!ip - Shows your IP / Pokazuje Twoje IP',$00FF0000);
WriteConsole(ID,'!ping - Shows your ping / Pokazuje Twoj ping',$00FF0000);
WriteConsole(ID,'!nextmap - Shows the name of next map / Pokazuje nazwe nastepnej mapy', $00FF0000);
end;
!admin:
begin
WriteConsole(ID,'Admin: RunMan',$00FF0000);
end;
!ip:
begin
WriteConsole(ID,'Your IP is: / Twoje IP to: ' + IDToIP(ID),$00FF0000);
end;
!nextmap:
begin
if Text = !nextmap' then
WriteConsole(ID,'The next map is: / Nastepna mapa to: ' + NextMap,$00FF0000);
end;
end;
Syntax error [7:1]
Date Posted: April 03, 2008, 02:29:50 pm
I forgot to put commands into '.
Now it shows <24:10> Identifier expected