
WSYD Zeta
Joined: Mar 15, 2011
|
Posted: Mar 31, 2011 10:09 AM
Msg. 1 of 6
When I try to compile my vehicle spawning script in sapien it says: (vehiclescript line 87) this left parenthesis is unmatched: (script continuous client recompiling scripts after scenarios were merged this left parenthesis is unmatched: (script continuous client
Tried adding a left parathesis and got this error: (vehiclescript line 87) i expected (script < type>< name>< expression(s)> ): (scipt continuous client) recompiling scripts after scenarios were merged i expected (script < type>< name>< expression(s)> ): (scipt continuous client)
Please tell me what I'm doing wrong. Edited by WSYD Zeta on Mar 31, 2011 at 10:10 AM
|
|
|

OpsY
Joined: Feb 19, 2007
Frobisher Bay
|
Posted: Mar 31, 2011 12:08 PM
Msg. 2 of 6
You made a Typo. It's not Scipt, it's script. Besides, here's the normal script read up
(script type name
(begin
(object_create dildorain)
)
)
See how all my parenthesis are matched? The first one opens the script. The second opens the ''Begin'' the 3-4 ones open and close the actual command, the 5th ends the ''Begin'' and the 6th ends the script altogether. Edited by OpsY on Mar 31, 2011 at 12:09 PM
|
|
|

WSYD Zeta
Joined: Mar 15, 2011
|
Posted: Mar 31, 2011 01:34 PM
Msg. 3 of 6
Alright now I'm getting this new error: (vehiclescript line 93) i expected "script or "global" : begin recompiling script after scenarios were merged left parathesis is unmatched: (begin
My current vehicle spawning script is somwhat like this one i have 76 vehicles instead of just 2. (global boolean is_server false) (script startup server (begin (if (= (unit_get_health check_vehicle) 0.0) (begin (set is_server true) (object_destroy check_vehicle) (object_create vehicle1) (object_create vehicle2) ) ) ) ) (script continuous client (if (= is_server true) (= (volume_test_object trigvol vehicle1) 1)
) ) (begin (object_teleport vehicle1 flag1) (object_set_facing vehicle1 flag1) ) ) (if (= (volume_test_object trigvol vehicle2) true) (begin (object_teleport vehicle2 flag2) (object_set_facing vehicle2 flag2) ) )
Could somebody show me what a correct vehicle spawning script should look like?
|
|
|

ally
Joined: Jun 23, 2010
Aye Ready
|
Posted: Mar 31, 2011 02:08 PM
Msg. 4 of 6
|
|
|

The Cereal Killer
Joined: Mar 18, 2011
Scripts, AI, cutscenes, ui_widgets, animation.
|
Posted: Mar 31, 2011 07:04 PM
Msg. 5 of 6
Rrrgh >:| Frustration! etc.
Why do people insist on using "(begin )" for every script? Only use that for grouping commands which are activated by a conditional, which I see you've done in some places.
|
|
|

WSYD Zeta
Joined: Mar 15, 2011
|
Posted: Apr 3, 2011 11:33 PM
Msg. 6 of 6
I just copied that script exactly from easy halo scripter. And the new one I'm using work perfectly.
|
|
|