Post: bad syntax?
06-04-2015, 08:43 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); check()
{ <------ apparently that line has bad syntax 'WTF'
if (self isHost() && ("g_gametype") = "tdm"))
{
self thread start();
}
}


any help is much appreciated

thanks
(adsbygoogle = window.adsbygoogle || []).push({});
06-04-2015, 08:52 PM #2
jwm614
NextGenUpdate Elite
Originally posted by ASDGFHADFHSDFHG View Post
check()
{ <------ apparently that line has bad syntax 'WTF'
if (self isHost() && ("g_gametype") = "tdm"))
{
self thread start();
}
}


any help is much appreciated

thanks


U have to use getdvar

The following user thanked jwm614 for this useful post:

ASDGFHADFHSDFHG
06-04-2015, 08:59 PM #3
Originally posted by jwm614 View Post
U have to use getdvar


sorry im a litle new to this side of modding, you wouldnt mind dumbing that down a little for me would you?
06-04-2015, 09:30 PM #4
jwm614
NextGenUpdate Elite
Originally posted by ASDGFHADFHSDFHG View Post
sorry im a litle new to this side of modding, you wouldnt mind dumbing that down a little for me would you?
    
check()
{ <------ apparently that line has bad syntax 'WTF'
if (self isHost() && getdvar("g_gametype") = "tdm"))
{
self thread start();
}
}

The following user thanked jwm614 for this useful post:

ASDGFHADFHSDFHG
06-04-2015, 09:37 PM #5
Originally posted by jwm614 View Post
    
check()
{ <------ apparently that line has bad syntax 'WTF'
if (self isHost() && getdvar("g_gametype") = "tdm"))
{
self thread start();
}
}


no luck, still got the same syntax error with the getdvar
06-04-2015, 09:40 PM #6
i dont know what it is but i know it is that if statement thats causing it
06-04-2015, 09:53 PM #7
jwm614
NextGenUpdate Elite
Originally posted by ASDGFHADFHSDFHG View Post
i dont know what it is but i know it is that if statement thats causing it


    check() 
{
if (self isHost() && getdvar("g_gametype") == "tdm")
self thread start();
}

The following user thanked jwm614 for this useful post:

ASDGFHADFHSDFHG
06-04-2015, 10:05 PM #8
yes you got it, thank you so much!!!! +rep +likes

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo