generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: guys y wont my script work

Previous Thread :: Next Thread 
DivineHate is not online. DivineHate
Joined: 29 May 2009
Total Posts: 28644
21 Apr 2015 10:22 PM
int i = 0;
for (;; )
{
++i;
if ( i == 5 )
{
continue;
}
Console.Write("oh god why {0} ", i);
if ( i > 10 )
{
break;
}
}

halp pls
Report Abuse
222304 is not online. 222304
Top 100 Poster
Joined: 26 May 2008
Total Posts: 24900
21 Apr 2015 10:24 PM
lol c#
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
21 Apr 2015 10:25 PM
that syntax looks cool (I'm only know rbx.lua)
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
21 Apr 2015 10:25 PM
nub
Report Abuse
gerov is not online. gerov
Joined: 05 Feb 2011
Total Posts: 5504
21 Apr 2015 10:26 PM
Your brackets annoy me.

But, that is just a personal thing.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
21 Apr 2015 10:35 PM
int i = 0; -- Invalid syntax.
for (;; ) -- Invalid syntax.
{ -- Invalid syntax.
++i; --Invalid syntax.
if ( i == 5 ) -- Strange, this is actually valid.
{ -- Invalid syntax.
continue; -- Invalid syntax.
} -- Invalid syntax.
Console.Write("oh god why {0} ", i); -- Undeclared variable.
if ( i > 10 ) -- Strangely valid.
{ -- Invalid syntax.
break; -- Valid :\
} -- Invalid syntax.
} -- Invalid syntax.



I can only assume that this is what you meant:

local int; i = 0;
_for () -- Removed the use of a reserved keyword, and removed rogue semicolons.
{ -- This is now valid.
i + i; -- I think this is what you meant.
_if ( i == 5 ) -- Removed the use of a reserved keyword.
{ -- Now valid.
continue;
}; -- Added semicolon.
Console.Write("oh god why {0} ", i); -- MAKE SURE you define Console!
_if ( i > 10 ) -- Removed the use of a reserved keyword.
-- MAKE SURE you change the variable names when they are declared too!
{ -- Now valid.
_break; -- Removed the use of a reserved keyword.
}
}
Report Abuse
222304 is not online. 222304
Top 100 Poster
Joined: 26 May 2008
Total Posts: 24900
20 May 2015 06:18 PM
your first mistake is not conforming 2 roblox
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image