Home   Help Search Login Register  

Author Topic: HELP!!!  (Read 2028 times)

0 Members and 1 Guest are viewing this topic.

repta

  • Guest
Re:HELP!!!
« Reply #15 on: 01 Aug 2004, 23:07:25 »
i have many items in my crate and i dont want to go and type it in. any ways i rewrite the script on notepad and it still doesnt work(extentions were not hidden). i saved it as a ext. how do u guys get scripts to work? they dont like me very much.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:HELP!!!
« Reply #16 on: 01 Aug 2004, 23:13:11 »
Try this:

[this] exec "my_cratenamechanged.sqs"

in the init field of the crate. If that works, read SnYpirs introduction to Code Snippets in Editors Depot.

:beat: *Gets Shot* :beat:

EDIT: Whoa! Don't save as ext, then itll crash! .sqs is your file!
« Last Edit: 01 Aug 2004, 23:13:51 by The Real Armstrong »

repta

  • Guest
Re:HELP!!!
« Reply #17 on: 01 Aug 2004, 23:37:35 »
that is exactly what ive been doing. i did it again and it still wont work.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:HELP!!!
« Reply #18 on: 01 Aug 2004, 23:45:46 »
Zip your script and post it here so we can download it and see.


Planck
I know a little about a lot, and a lot about a little.

repta

  • Guest
Re:HELP!!!
« Reply #19 on: 02 Aug 2004, 04:55:00 »
here it is

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:HELP!!!
« Reply #20 on: 02 Aug 2004, 23:20:06 »
OK

I made a quick thing in the mission editor.

I placed the 'Ammo Crates (West)' and myself as player on the Intro Isle.

I saved it then Alt Tabbed out of the game and then put a copy of your script in the mission folder where the mission.sqm was.

Back in the game I put:

[this] exec "custom_crate.sqs"

in the init field of the crate.

In this particular case it required '[this]' and not 'this'.

Everything worked just fine, I went to the crate and could choose all sorts of weapons.

I also tried it with 'Ammo Crates (East)'.



Planck
« Last Edit: 02 Aug 2004, 23:24:50 by Planck »
I know a little about a lot, and a lot about a little.

repta

  • Guest
Re:HELP!!!
« Reply #21 on: 04 Aug 2004, 21:27:15 »
okay, it worked on the empty map but when i did it on my map it said ""chat.sqs" not found!"

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:HELP!!!
« Reply #22 on: 04 Aug 2004, 21:35:14 »
What does chat.sqs have to do with custom_crate.sqs?


Planck
I know a little about a lot, and a lot about a little.

repta

  • Guest
Re:HELP!!!
« Reply #23 on: 04 Aug 2004, 21:40:08 »
dont ask me

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:HELP!!!
« Reply #24 on: 04 Aug 2004, 21:43:21 »
Well......it is your mission, you should know if you are calling a script callled 'chat.sqs' from anywhere or not.

Maybe you should post your mission so we can look.


Planck
I know a little about a lot, and a lot about a little.

repta

  • Guest
Re:HELP!!!
« Reply #25 on: 04 Aug 2004, 21:45:36 »
nvm, i figured it out.

DBR_ONIX

  • Guest
Re:HELP!!!
« Reply #26 on: 05 Aug 2004, 18:49:19 »
Eh?
In the code
Quote
RUN CODE: [this] Exec "CUSTOM_CRATE.sqs"
::)
- Ben

repta

  • Guest
Re:HELP!!!
« Reply #27 on: 08 Aug 2004, 16:02:10 »
i figured it out.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:HELP!!!
« Reply #28 on: 08 Aug 2004, 16:05:14 »
Thats good news.

How about pressing the 'solved' button.


Planck
I know a little about a lot, and a lot about a little.