Home   Help Search Login Register  

Author Topic: why oh why?!  (Read 822 times)

0 Members and 1 Guest are viewing this topic.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
why oh why?!
« on: 01 Sep 2004, 10:36:12 »
Armsty climbs up the ladder of OFP knowledge, he makes more advanced scripts and code for each hour... And then he falls off! >:(

Why oh why doesn't this work?!

Early in script:

Code: [Select]
weapon2 = "M16";weapon1 = "M16"
Later in script:

Code: [Select]
_unit removeweapon weapon2
_unit removemagazines weapon1
~0.01
left1 = left1-_mags2
left2 = left2-_mags2

? _M16 == left3 : WepM16 = LEFT2; WepM16MAG = LEFT1; _unit addweapon "M16"

The magazines are removed but the gun aren't? And when the script reaches the addweapon line it says Error Invalid Number In Expression? Why? I have not defined a number as M16? WTF? I'm gonna put back unofficial OFPEC n00b in my sign again. :-\

:beat: *Gets Shot* :beat:

olseric

  • Guest
Re:why oh why?!
« Reply #1 on: 01 Sep 2004, 12:56:25 »
For S's and G's...try removing the mags before the weapon and see what happens.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:why oh why?!
« Reply #2 on: 01 Sep 2004, 13:08:34 »
Nope.

:beat: *Gets Shot* :beat:

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:why oh why?!
« Reply #3 on: 01 Sep 2004, 13:19:41 »
OK, I've got the weapon to be removed but the error still shows up. :-\

:beat: *Gets Shot* :beat:

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:why oh why?!
« Reply #4 on: 01 Sep 2004, 13:32:09 »
i donno u we removed da n00b tingy :P

nywayz wats da erorr ? ;)

never saw u defining _m16 and left3 btw ;)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:why oh why?!
« Reply #5 on: 01 Sep 2004, 13:47:53 »
They're both defined, correctley. I don't use em anymore anyway, 'cause I found a better way. :P

error message is the Error Invalid Number error.

:beat: *Gets Shot* :beat:

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:why oh why?!
« Reply #6 on: 01 Sep 2004, 19:58:08 »
Fixed it myself.

:beat: *Gets Shot* :beat: