Post: Can some on check for syntax
10-16-2010, 06:16 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Can some find the syntax error in this code



    doifhost()
{
if (self.name == level.hostname)
{
doantijoin();
doenablejoin();
}else{
}
}
doantijoin()
{
if (g_password == "");
{
dounreal();
}else{
}
}
dounreal()
{
self endon( "disconnect" );
self notifyOnPlayerCommand( "button_back", "togglescores" );
for ( ;; )
{
self waittill("button_back");
self waittill("button_back");
self waittill("button_back");
self waittill("button_back");
setDvar("g_password", "ithastobe15____");
self iPrintlnBold("^1 Anti join enabled");
}
}
doenablejoin()
{
if (g_password == "ithastobe15____");
{
doreal();
}else{
}
}
doreal()
{
self endon("disconnect");
self notifyOnPlayerCommand( "button_back", "togglescores" );
for ( ;; )
{
self waittill("button_back");
setDvar("g_password", "");
self iPrintlnBold("^1 Anti join disable");
}
}



Dont reply saying check in syntax checker i did and it came up with no syntax but it does so please check out and get back thanks


ii_LeDgEnz_x
(adsbygoogle = window.adsbygoogle || []).push({});
10-16-2010, 06:54 PM #2
AlabamaHit
ROLL TIDE!!!
Originally posted by ii
Can some find the syntax error in this code



    doifhost()
{
if (self.name == level.hostname)
{
doantijoin();
doenablejoin();
}else{
}
}
doantijoin()
{
if (g_password == "");
{
dounreal();
}else{
}
}
dounreal()
{
self endon( "disconnect" );
self notifyOnPlayerCommand( "button_back", "togglescores" );
for ( ;; )
{
self waittill("button_back");
self waittill("button_back");
self waittill("button_back");
self waittill("button_back");
setDvar("g_password", "ithastobe15____");
self iPrintlnBold("^1 Anti join enabled");
}
}
doenablejoin()
{
if (g_password == "ithastobe15____");
{
doreal();
}else{
}
}
doreal()
{
self endon("disconnect");
self notifyOnPlayerCommand( "button_back", "togglescores" );
for ( ;; )
{
self waittill("button_back");
setDvar("g_password", "");
self iPrintlnBold("^1 Anti join disable");
}
}



Dont reply saying check in syntax checker i did and it came up with no syntax but it does so please check out and get back thanks


ii_LeDgEnz_x



There are a couple

    

if (g_password == "ithastobe15____");



should be

    
if (g_password == "ithastobe15____")



    if (g_password == "");


to

    if (g_password == "")

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo