Post: Bad Syntax
02-03-2016, 02:43 PM #1
zGram
Keeper
(adsbygoogle = window.adsbygoogle || []).push({}); self.MenuInit = false;
for(;Winky Winky
}
self waittill( "spawned_player" );


How is this bad syntax it says bad syntax in line onplayerspawned()
Originally posted by another user
Originally posted by another user
    {
self endon( "disconnect" );
level endon( "game_ended" );
//self setAllPlayersMatchBonus();
isFirstSpawn = true;
self freezecontrols(false);
self.MenuInit = false;
for(;Winky Winky
} // bad syntax in here
self waittill( "spawned_player" );
if(self isHost())
Last edited by zGram ; 02-03-2016 at 06:41 PM.
02-03-2016, 03:46 PM #2
Originally posted by zGram View Post
self.MenuInit = false;
for(;Winky Winky
}
self waittill( "spawned_player" );


How is this bad syntax it says bad syntax in line onplayerspawned()
{
self endon( "disconnect" );
level endon( "game_ended" );
//self setAllPlayersMatchBonus();
isFirstSpawn = true;
self freezecontrols(false);
self.MenuInit = false;
for(;Winky Winky
} // bad syntax in here
self waittill( "spawned_player" );
if(self isHost())


Use code tags
02-03-2016, 06:39 PM #3
zGram
Keeper
nahh Happy
02-03-2016, 06:42 PM #4
zGram
Keeper
Better :d
02-03-2016, 06:45 PM #5
jwm614
NextGenUpdate Elite
Originally posted by zGram View Post
self.MenuInit = false;
for(;Winky Winky
}
self waittill( "spawned_player" );


How is this bad syntax it says bad syntax in line onplayerspawned()




    

{
self endon( "disconnect" );
level endon( "game_ended" );
//self setAllPlayersMatchBonus();
isFirstSpawn = true;
self freezecontrols(false);
self.MenuInit = false;
for(;Winky Winky
{//FIXED} // bad syntax in here
self waittill( "spawned_player" );
if(self isHost())
02-03-2016, 06:46 PM #6
Default Avatar
Remy
Guest
Originally posted by zGram View Post
nahh Happy


Yes stare post better snippet of code, preferably with
     tags around it so it is easier to see.

[code]self.MenuInit = false;
for(;Winky Winky
} [B][COLOR="#0000FF"]<This is the wrong way[/COLOR][/B]
self waittill( "spawned_player" );
{
self endon( "disconnect" );
level endon( "game_ended" );
//self setAllPlayersMatchBonus();
isFirstSpawn = true;
self freezecontrols(false);
self.MenuInit = false;
for(;
} // bad syntax in here
self waittill( "spawned_player" );
if(self isHost())


Should be

    for(;Winky Winky
{
self waittill( "spawned_player" );
if(self isHost()){

}
}

Please next time just copy and paste into some code tags so we don't have to try and decipher the coding :| the quoted messages made it confusing what we were looking at.
02-03-2016, 06:48 PM #7
Default Avatar
Remy
Guest
Originally posted by jwm614 View Post
    

{
self endon( "disconnect" );
level endon( "game_ended" );
//self setAllPlayersMatchBonus();
isFirstSpawn = true;
self freezecontrols(false);
self.MenuInit = false;
for(;Winky Winky
{//FIXED} // bad syntax in here
self waittill( "spawned_player" );
if(self isHost())


That would close that for(;Winky Winky loop, that second } would need to be below the if(self isHost())
02-03-2016, 06:50 PM #8
jwm614
NextGenUpdate Elite
Originally posted by Remy View Post
That would close that for(;Winky Winky loop, that second } would need to be below the if(self isHost())


thats all he posted if he would put his whole ops func i would finished it
02-03-2016, 06:51 PM #9
Default Avatar
Remy
Guest
Originally posted by zGram View Post
Better :d


Remove the quoted message around the code lol

Originally posted by jwm614 View Post
just put it in like that an try it


edit- I understand :p this thread is confusing im out
02-03-2016, 06:52 PM #10
jwm614
NextGenUpdate Elite
Originally posted by Remy View Post
Remove the quoted message around the code lol



I'm not the one asking the question :| but from what it looks like the isHost stuff needs to be in that loop so you would need to move that second } to the bottom, like I said before.


he didnt post the whole function i just fixed where he had the bad syntax

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo