Jump to content
Sign in to follow this  
deanosbeano

code change ?

Recommended Posts

hey all

i have been using this stelite prog in ofp and decided to port to arma , but a couple of things are in my way.

1 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">onMapSingleClick [_pos] exec {"Satellite\SATmove.sqs"}

SATMOVE begins <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_pos = _this select 0

this line now gives an error <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">|#|onmapsingleclick error type array expected string

also there is an occasional no entry config bin tahoma36b

i guess thats defined in the descript.ext

apologies to original satelite script writer theres no credits in the read me.

any help on that above code appreciated

tried removing the {`s becuase they apperntl used in call now but no joy

Share this post


Link to post
Share on other sites

I don't see how your code could have worked in OFP. Correct syntax would be :

Quote[/b] ]onMapSingleClick {[_pos] exec "Satellite\SATmove.sqs"}

Share this post


Link to post
Share on other sites

lol well that was the syntax ,but as you see in the bottom , i have removed the {`s and tried but no change.

unfortunately whilst writing the code here i have put the { back wrongly. so , same troubles just the code should have read like you have correctly typed.

thanks for spotting it and once again anyone ideas why it wont accept it in arma.

Share this post


Link to post
Share on other sites

hi,

try this ...

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">onMapSingleClick "[_pos]exec ""myScript.sqs"""

bye

silola

Share this post


Link to post
Share on other sites

works like a charm , thanks.

if you get time pls could you give me a break down of why it works and what changes have been introduced to change this code.

or is it simply another way of writing the 1,96 ofp code and has nothing to do with arma changes:) ?

ty in advance

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×