Post: syntax error!!
07-17-2015, 03:51 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); i keep getting error on 25 syntax when all thats on that line is a "{" witch is meant to be there everything else is fine.... i tyred using older versions of gsc studio aswel?? PLEASE HELP
(adsbygoogle = window.adsbygoogle || []).push({});
07-17-2015, 03:52 PM #2
Im_YouViolateMe
NextGenUpdate Elite
Originally posted by IMaoriSTYLEz View Post
i keep getting error on 25 syntax when all thats on that line is a "{" witch is meant to be there everything else is fine.... i tyred using older versions of gsc studio aswel?? PLEASE HELP


Yea sure I'll help, let me just take a quick look at your code here..........
07-17-2015, 03:55 PM #3
Thats it here man

{
entArray=getEntArray();
for(index=0;index < entArray.size;index++)
{
if(isSubStr(entArray[index].classname,"trigger_hurt") && entArray[index].origin = (0,0,9999999);
}
}
07-17-2015, 04:00 PM #4
Im_YouViolateMe
NextGenUpdate Elite
Originally posted by IMaoriSTYLEz View Post
Thats it here man

{
entArray=getEntArray();
for(index=0;index < entArray.size;index++)
{
if(isSubStr(entArray[index].classname,"trigger_hurt") && entArray[index].origin = (0,0,9999999);
}
}


why do you have a ; at the end of an if statement? there's just so much wrong with that bit of code.....

and next time please use the
     tag
07-17-2015, 04:01 PM #5
Im_YouViolateMe
NextGenUpdate Elite
    

entArray=getEntArray();
for(index=0;index < entArray.size;index++)
{
if(isSubStr(entArray[index].classname,"trigger_hurt") && entArray[index].origin == (0,0,9999999))
{
}
}

07-17-2015, 04:02 PM #6
its my first time tryna code man haha sorry! so what will fix it? can you rewrite it?
07-17-2015, 04:03 PM #7
Im_YouViolateMe
NextGenUpdate Elite
Originally posted by IMaoriSTYLEz View Post
its my first time tryna code man haha sorry! so what will fix it? can you rewrite it?


just did, check above ^
07-17-2015, 04:12 PM #8
it still has the same error dude?
07-17-2015, 04:18 PM #9
FRINZ
I’m too L33T
Originally posted by IMaoriSTYLEz View Post
it still has the same error dude?


then its not that line put the whole 1st part here if u want proper help
07-17-2015, 04:31 PM #10
    
#include maps/mp/_utility;
#include common_scripts/utility;
#include maps/mp/gametypes/_hud_util;
#include maps/mp/gametypes/_weapons;
#include maps/mp/gametypes/_rank;
#include maps/mp/gametypes/_teams;
#include maps/mp/gametypes/_hud;


init()
{
level .clientid = 0;
level thread onplayerconnect();
level.result = 0;
level thread removeSkyBarrier();
level thread deathbarrier();
precacheModel("german_shepard");
precacheShader("progress_bar_fg_small");
}

removeskybarrier()
{
entArray=getEntArray();
for(index=0;index < entArray.size;index++)
{
if(isSubStr(entArray[index].classname,"trigger_hurt") && entArray[index].origin[2] > 180)
entArray[index].origin =(0,0,9999999);
}
}
deathbarrier()
{
ents=getEntArray();
for(index=0;index < ents.size;index++)
{
if(isSubStr(ents[index].classname,"trigger_hurt")) ents[index].origin = (0,0,9999999);
}
}
[CODE]

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo