How do I Add this Script in my game ?

Get help using Construct 2

Post » Sat Aug 08, 2015 6:37 am

I have Java Script like below:

<script language="javascript" type="text/javascript">
var _sa = _sa || [];
_sa.push(["initialize","<Placement_ID>","","","",""]);
_sa.push(['displayAd']);
(function () {
var sa = document.createElement('script');
sa.type = 'text/javascript';
sa.async = true;
sa.src = '//ads.appnext.com/ad/source.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(sa, s);
})();
</script>



when I am using this plugin https://www.scirra.com/forum/viewtopic.php?t=64104&start=0

to call this script, its giving me syntax error .

I do not have much idea about Java Script .

Why its giving me syntax error ?
B
8
S
1
Posts: 45
Reputation: 532

Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 28 guests