Post: Syntax error in Zombieland
10-25-2017, 10:20 PM #1
lloosemore1
Save Point
(adsbygoogle = window.adsbygoogle || []).push({}); Could someone help me with this error, i tried deleting the "wait" part but it keeps saying bad syntax in the line above.*You must login or register to view this content.
10-26-2017, 11:24 PM #11
1UP
Banned
Originally posted by lloosemore1 View Post
I copyed it into GSC and it worked but now a freeze when i load into the game. Anyway around that?


I've never used GSC so I can't say why that would be, I suggest figuring out a way to debug it.

The only thing I can see that looks weird is
for(;Winky Winky{}
10-27-2017, 06:01 PM #12
Patrick
League Champion
Originally posted by lloosemore1 View Post
I copyed it into GSC and it worked but now a freeze when i load into the game. Anyway around that?


You need to add a wait inside of the for loop but outside of all if statements
10-27-2017, 08:44 PM #13
lloosemore1
Save Point
Originally posted by Patrick View Post
You need to add a wait inside of the for loop but outside of all if statements


Could you put the code in a reply so i can copy it cuz idk where you mean
10-28-2017, 01:09 AM #14
Patrick
League Champion
Originally posted by lloosemore1 View Post
Could you put the code in a reply so i can copy it cuz idk where you mean


copy and paste wont get you anywhere but here
    monitorgame()
{
level endon( "game_ended" );
level endon( "winnerDeclared" );
level.timetopausegame = 10;
wait 1;
for(;Winky Winky
{
if( !(level.inprematchperiod) )
{
if( level.currentgametime == level.timetopausegame )
{
pausetimer();
}
level.zombiecount = 0;
level.humancount = 0;
wait 0.05;

foreach( player in level.players )
{
if( player.status == "zombie" )
{
level.zombiecount = level.zombiecount + 1;
}
if( player.status == "human" )
{
level.humancount = level.humancount + 1;
}
if( level.zombieselectioninprogress )
{
level.zombiecount = 1337;
}
wait 0.05;
}
}
wait .05;
}
}

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo