Author Topic: GrabbedInBase doesn't work  (Read 926 times)

0 Members and 1 Guest are viewing this topic.

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
GrabbedInBase doesn't work
« on: May 20, 2007, 01:00:36 pm »
Code: [Select]
procedure OnFlagGrab(ID, TeamFlag: byte; GrabbedInBase: boolean);
begin
  Command('/say ' + iif(GrabbedInBase = true,'True','False'));
end;

And it always says False, even if it is grabbed in base.
(2.6.1 pre-release)

I hope to see this working in the final 2.6.1 release.

(And yes, I did search to see if this was in there somewhere...)

Offline Avarax

  • Veteran
  • *****
  • Posts: 1529
    • Official Hexer & MMod site
Re: GrabbedInBase doesn't work
« Reply #1 on: May 20, 2007, 01:35:31 pm »
hehe... maybe it's the iif that's not working. it seemed to work for me
I like to have one Martini
Two at the very most
Three I'm under the table
Four I'm under the host

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: GrabbedInBase doesn't work
« Reply #2 on: May 20, 2007, 02:30:36 pm »
no, kuz i also had a if GrabbedInBase = true the Cash[ID] := Cash[ID] + 500; and that didn't work neither.. i just excluded that from my post :)
(where as Cash: array[1..32] of integer;