Author Topic: comma expected, there is a comma, wtf????  (Read 765 times)

0 Members and 1 Guest are viewing this topic.

Offline frosty

  • Flagrunner
  • ****
  • Posts: 601
  • Uber Desert Eagle ^^
comma expected, there is a comma, wtf????
« on: July 04, 2010, 07:05:05 pm »
Code: (pascal) [Select]
procedure OnPlayerSpeak(ID: Byte; Text: string);
begin
  if Text = '!commands' then begin
    WriteConsole(0,IdtoName(ID)+' has just requested Commands!',$EE00FF40);
    WriteConsole(0,'!basic - displays the basic commands which have been added',$EE00FF40);
    WriteConsole(0,'!adminlist - shows the list of admins',$EE00FF40);
    WriteConsole(0,'!admin - calls an admin to the server',$EE00FF40);
    WriteConsole(0,'!rules -  shows the server rules',$EE00FF40);
    WriteConsole(0,'!test - performs test if ARSSE can see you',$EE00FF40);
    WriteConsole(0,'!knownbugs -  shows the Known bugs list',$EE00FF40);
    WriteConsole(0,'/admincommands - only those who are logged in as admin can see the result',$EE00FF40);
  end;
 
  if Text = '!basic' then begin
    WriteConsole(0,IdtoName(ID)+' has just requested Basic Commands!',$EE00FF40);
    WriteConsole(0,'/cash - displays current cash levels',$EE00FF40);
    WriteConsole(0,'/items - shows the items that you can buy for the Cash, inclds: purchase CMDs',$EE00FF40);
    WriteConsole(0,'/dex on - turns on death explosions for your ID',$EE00FF40);
    WriteConsole(0,'/dex off - turns death explosions off for your ID',$EE00FF40);
    WriteConsole(0,'/bug YourMessage - report a bug, replace YourMessage with the bug',$EE00FF40);
    WriteConsole(0,'/suggest YourMessage - suggest something, replace YourMesage with your suggestion',$EE00FF40);
    WriteConsole(0,'/feedback YourMessage - leave Feedback, replace YourMessage with your feedback',$EE00FF40);
    WriteConsole(0,'!mykills - shows you your current kill streak and kill score for map',$EE00FF40);
    WriteConsole(0,'/red or /spec - change between teams Alpha and Spectator',$EE00FF40);
  end;
end;

[6:70]Comma (,) expected

wtf, theres no missing commas or semicolons... what gives??? :S

From: July 04, 2010, 07:37:05 pm
nevermind, it just decided to compile for me, someone delete this plz
« Last Edit: July 04, 2010, 07:37:05 pm by frosty »
check out my server! click here

If at first you don't succeed, Improvise! :D

Offline Swompie

  • Camper
  • ***
  • Posts: 390
Re: comma expected, there is a comma, wtf????
« Reply #1 on: July 05, 2010, 07:00:55 am »
Why you can't just have one topic for all your fucking questions -.-"
It's getting annoying  ::)

Offline frosty

  • Flagrunner
  • ****
  • Posts: 601
  • Uber Desert Eagle ^^
Re: comma expected, there is a comma, wtf????
« Reply #2 on: July 05, 2010, 01:16:51 pm »
because if i dont, i keep getting flamed for bumping old topics, even if the old topics are mine...
check out my server! click here

If at first you don't succeed, Improvise! :D

Offline Swompie

  • Camper
  • ***
  • Posts: 390
Re: comma expected, there is a comma, wtf????
« Reply #3 on: July 05, 2010, 02:25:01 pm »
Lies.
No one blames you for asking questions in your own topics..
Don't know from where you grabbed that up, but we're not here to tell people to stop asking questions.
We only blame them when these questions are just retarded..

Offline zyxstand

  • Veteran
  • *****
  • Posts: 1106
  • Mother of all Bombs
Re: comma expected, there is a comma, wtf????
« Reply #4 on: July 05, 2010, 03:47:18 pm »
you're a programmer now. spend time thinking outside the box a bit. debug your code by experimenting with it. there is no better way to learn!
Can't think of anything original to put here...