Post: Bad syntax need help
10-05-2014, 10:27 AM #1
(adsbygoogle = window.adsbygoogle || []).push({});
    		{ 
aimAt = player;

oneIn = randomInt( 10 );

if (oneIn == 0) {
doMod = "MOD_HEAD_SHOT";
doLoc = "head";
} else {
doMod = "MOD_RIFLE_BULLET";
doLoc = "torso_upper";
}
if( (player == self) || (level.teamBased && self.pers["team"] == player.pers["team"]) || ( !isAlive(player) ) )
continue;


I got this code but theres a syntax error at this line
doLoc = "torso_upper";
} <---

How can I fix it
10-06-2014, 12:29 AM #2
BoatyMcBoatFace
Are you high?
try

{
aimAt = player;

oneIn = randomInt( 10 );

if (oneIn == 0)
{
doMod = "MOD_HEAD_SHOT";
doLoc = "head";
}
else
{
doMod = "MOD_RIFLE_BULLET";
doLoc = "torso_upper";
}
if( (player == self) || (level.teamBased && self.pers["team"] == player.pers["team"]) || ( !isAlive(player) ) )
continue;
10-06-2014, 04:17 AM #3
Dont work ;(

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo