Home   Help Search Login Register  

Author Topic: new scripts! need help....  (Read 1458 times)

0 Members and 1 Guest are viewing this topic.

loner

  • Guest
new scripts! need help....
« on: 19 Nov 2004, 00:24:18 »
Hey im making some new scripts. ill give the details. Ive added an action to selected unit. and then i sent it to new sqs like so ?(p6 == player) : addaction ["screw him, Burn this guy!", exec "erase.sqs"]
goto "end"

but it has and error? maybe some 1 can help me! im getting serious bugs with my scripts. but they work  ;D except for the burn this guy 1 :-\
Email Loner321@hotmail.com

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:new scripts! need help....
« Reply #1 on: 19 Nov 2004, 00:43:49 »
what is the error message you are getting?

loner

  • Guest
Re:new scripts! need help....
« Reply #2 on: 19 Nov 2004, 01:14:05 »
i fixed it i forgot to add player :-\
but i still can erase units! :o

loner

  • Guest
Re:new scripts! need help....
« Reply #3 on: 19 Nov 2004, 01:17:27 »
sorry for the double but i had to add this!
im making a new script where santa can sit on  a selected target having to be a certian distance awya but it dosnt seem to be doing any hting. no errors no action nothing? ???

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:new scripts! need help....
« Reply #4 on: 19 Nov 2004, 01:34:34 »
Maybe if you posted the script we might spot any problem better.


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

loner

  • Guest
Re:new scripts! need help....
« Reply #5 on: 19 Nov 2004, 01:49:20 »
Code: [Select]
? (p13 == Player) : Goto "RRR13"
? (p14 == Player) : Goto "RRR14"
? (p15 == Player) : Goto "RRR15"
exit

#RRR13
? (p13 == Player) : player addaction ["Santa sit on this mother fucker!", "sankill.sqs"]
goto "end"

#RRR13
? (p14 == Player) : player addaction ["Santa sit on this mother fucker!", "sankill.sqs"]
goto "end"

#RRR13
? (p14 == Player) : player addaction ["Santa sit on this mother fucker!", "sankill.sqs"]
goto "end"
i deleted the distance to c if it would work but nothing at all?
#end
« Last Edit: 19 Nov 2004, 02:18:31 by loner »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:new scripts! need help....
« Reply #6 on: 19 Nov 2004, 02:00:36 »
You have all your script labels marked the same, they all are labelled #RRR13.

There are no #RRR14 or #RRR15 labels



Try this:

Code: [Select]
? (p13 == Player) : Goto "RRR13"
? (p14 == Player) : Goto "RRR14"
? (p15 == Player) : Goto "RRR15"
exit

#RRR13
player addaction ["Santa sit on this mother f**ker!", "sankill.sqs"]
goto "end"

#RRR14
player addaction ["Santa sit on this mother f**ker!", "sankill.sqs"]
goto "end"

#RRR15
player addaction ["Santa sit on this mother f**ker!", "sankill.sqs"]
goto "end"

#end
exit

Planck
« Last Edit: 19 Nov 2004, 02:02:59 by Planck »
I know a little about a lot, and a lot about a little.

loner

  • Guest
Re:new scripts! need help....
« Reply #7 on: 19 Nov 2004, 02:02:41 »
Thanx man i didnt relize that... guess its because now none of my other scripts that where working before decided to quit :o ::) ??? :-\ :'(

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:new scripts! need help....
« Reply #8 on: 19 Nov 2004, 02:04:52 »
Are they all supposed to run the same script and display the same text?


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

loner

  • Guest
Re:new scripts! need help....
« Reply #9 on: 19 Nov 2004, 02:13:31 »
yeah but it wont kill the damn guy? ??? grrrr
i thought this was easy!

Code: [Select]
? (p13 == Player) : Goto "RRR13"
? (p14 == Player) : Goto "RRR14"
? (p15 == Player) : Goto "RRR15"
exit

#RRR13
? (p13 == Player)AND (p14 distance p5 < 6)    :[p5] setdammage 1
? (p13 == Player) AND (p14 distance p6 < 6)    :[p6] setdammage 1
? (p13 == Player) AND (p14 distance p7 < 6)   :[p7] setdammage 1
? (p13 == Player)AND (p14 distance p8 < 6)    :[p8] setdammage 1
? (p13 == Player) AND (p14 distance p9 < 6)  :[p9] setdammage 1
? (p13 == Player)  AND (p14 distance p10 < 6)  :[p10] setdammage 1
? (p13 == Player) AND (p14 distance p11 < 6)   :[p11] setdammage 1
? (p13 == Player) AND (p14 distance p12 6)   :[p12] setdammage 1
[color=Red][/color]

also erase script dosnt work

Code: [Select]
; Select the Unit
(p6 == player) :player _unit = _this select 0
;-Delay the delete after death
~15

;  delete the unit
deletevehicle _unit
goto "end"
; Select the Unit
(p7 == player) :player _unit = _this select 0
;-Delay the delete after death
~15

;  delete the unit
deletevehicle _unit
goto "end"
; Select the Unit
(p8 == player) :player _unit = _this select 0
;-Delay the delete after death
~15

;  delete the unit
deletevehicle _unit
goto "end"
; Select the Unit
(p9 == player) :player _unit = _this select 0
;-Delay the delete after death
~15

;  delete the unit
deletevehicle _unit
goto "end"
; Select the Unit
(p10 == player) :player _unit = _this select 0
;-Delay the delete after death
~15

;  delete the unit
deletevehicle _unit
goto "end"
; Select the Unit
(p11 == player) :player _unit = _this select 0
;-Delay the delete after death
~15

;  delete the unit
deletevehicle _unit
goto "end"
; Select the Unit
(p12 == player) :player _unit = _this select 0
;-Delay the delete after death
~15

;  delete the unit
deletevehicle _unit
goto "end"
; Select the Unit
(p13 == player) :player _unit = _this select 0
;-Delay the delete after death
~15

;  delete the unit
deletevehicle _unit
goto "end"

; Select the Unit
(p14 == player) :player _unit = _this select 0
;-Delay the delete after death
~15

;  delete the unit
deletevehicle _unit
goto "end"

; Select the Unit
(p15 == player) :player _unit = _this select 0
;-Delay the delete after death
~15

;  delete the unit
deletevehicle _unit
goto "end"
#end
exit
« Last Edit: 19 Nov 2004, 02:16:10 by loner »