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 » Scripting Helpers
Home Search
 

Re: ok, i need help with this javascript.

Previous Thread :: Next Thread 
fireball6157 is not online. fireball6157
Joined: 27 Jan 2009
Total Posts: 26801
07 Apr 2014 09:43 PM
[ Content Deleted ]
Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
07 Apr 2014 09:51 PM
I don't really know jus but...


Would it be if 10 == 10?
Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
07 Apr 2014 09:51 PM
JS*

Sorry I'm on my ipad and it autocorrected.
Report Abuse
Hypernym is not online. Hypernym
Joined: 16 Oct 2013
Total Posts: 20082
07 Apr 2014 09:52 PM
Its supposed to be if(10==10)
Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
07 Apr 2014 09:53 PM
Already said that Hyper..
Report Abuse
Ariophy is not online. Ariophy
Joined: 08 Mar 2014
Total Posts: 81
07 Apr 2014 09:53 PM
never learned much of js srry
Report Abuse
Hypernym is not online. Hypernym
Joined: 16 Oct 2013
Total Posts: 20082
07 Apr 2014 09:54 PM
@for i'm aware

U forgot parenthesis tho

And u said u dont rly know, i clarified it for u
Report Abuse
fireball6157 is not online. fireball6157
Joined: 27 Jan 2009
Total Posts: 26801
07 Apr 2014 10:00 PM
[ Content Deleted ]
Report Abuse
Hypernym is not online. Hypernym
Joined: 16 Oct 2013
Total Posts: 20082
07 Apr 2014 10:00 PM
Np

If u need us help from now on u can jus pm me
Report Abuse
fireball6157 is not online. fireball6157
Joined: 27 Jan 2009
Total Posts: 26801
07 Apr 2014 10:01 PM
[ Content Deleted ]
Report Abuse
Hypernym is not online. Hypernym
Joined: 16 Oct 2013
Total Posts: 20082
07 Apr 2014 10:01 PM
Oh and uhh

If(10==10){

Remove the semicolon after (10==10)

Ill luk 4 mor problems
Report Abuse
Hypernym is not online. Hypernym
Joined: 16 Oct 2013
Total Posts: 20082
07 Apr 2014 10:02 PM
Nah dat shud b it
Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
07 Apr 2014 10:03 PM
Do you need a semicolon after the if condition? You don't need it in C... Try taking away the semicolon after the if statement. Or try replacing the if (10==10) with if(true)
Report Abuse
fireball6157 is not online. fireball6157
Joined: 27 Jan 2009
Total Posts: 26801
07 Apr 2014 10:03 PM
[ Content Deleted ]
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
07 Apr 2014 10:04 PM
take out "code;"

Report Abuse
Hypernym is not online. Hypernym
Joined: 16 Oct 2013
Total Posts: 20082
07 Apr 2014 10:05 PM
Put "var code" before the if statement, if code is really necessary

It doesnt do anything

Also, semicolons arent really necessary in javascript (they're only needed in very specific cases), but people consider them good practice
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
07 Apr 2014 10:07 PM
just take out code; completely

that's your error
Report Abuse
fireball6157 is not online. fireball6157
Joined: 27 Jan 2009
Total Posts: 26801
07 Apr 2014 10:09 PM
[ Content Deleted ]
Report Abuse
Hypernym is not online. Hypernym
Joined: 16 Oct 2013
Total Posts: 20082
07 Apr 2014 10:11 PM
@island

Welll wot if he wanted 2 do somthin lik dis

if(10==10){
code=true
}else{
code=false
}
console.log("You got a "+code+"!")
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
07 Apr 2014 10:13 PM
^ That's nasty.

console.log("You got a"+(10==10)+"!");
//I don't remember whether or not you have toString booleans
Report Abuse
Hypernym is not online. Hypernym
Joined: 16 Oct 2013
Total Posts: 20082
07 Apr 2014 10:15 PM
I dont think u have 2 tostring dem

Its nasty cus from the screenshot, i'd assume hes trying to learn js, complex stuff like putting the condition in the console.log is l8r steps
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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