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: variable help

Previous Thread :: Next Thread 
greajn is not online. greajn
Joined: 12 Apr 2008
Total Posts: 19
06 Nov 2011 02:42 PM
String = "Hello"
String1 = "World"



print (string, string1)
hello nil

could someone tell me why it says nil and how i can fix this please
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
06 Nov 2011 02:49 PM
[ Content Deleted ]
Report Abuse
secretspy97 is not online. secretspy97
Joined: 06 Apr 2010
Total Posts: 96
06 Nov 2011 02:50 PM
This one works. I tried it out. You forgot your () and have to capitalize your S in both String and String1.

String = ("Hello")
String1 = ("World")


while true do
print (String, String1)
wait (5)
end
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
06 Nov 2011 02:51 PM
[ Content Deleted ]
Report Abuse
secretspy97 is not online. secretspy97
Joined: 06 Apr 2010
Total Posts: 96
06 Nov 2011 07:04 PM
R u sure
Report Abuse
secretspy97 is not online. secretspy97
Joined: 06 Apr 2010
Total Posts: 96
06 Nov 2011 07:05 PM
Ok
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
06 Nov 2011 07:06 PM
print'HOLY HAX NO ()'

-[::ƧѡÎḾḠΰῩ::]-
-[::Maker of stuff and Helper of Scripting::]-
Report Abuse
mityguy is not online. mityguy
Joined: 07 Jun 2008
Total Posts: 5483
06 Nov 2011 07:29 PM
String = "Hello"
String1 = "World"



print (string .. string1)
Report Abuse
josh50000 is not online. josh50000
Joined: 29 Nov 2009
Total Posts: 697
06 Nov 2011 07:51 PM
String = "Hello"
String1 = "World"

print(String.." "..String1)
Report Abuse
josh50000 is not online. josh50000
Joined: 29 Nov 2009
Total Posts: 697
06 Nov 2011 07:52 PM
forgot the spaces

print(String .." ".. String1)
Report Abuse
LevelNoobX is not online. LevelNoobX
Joined: 18 Sep 2011
Total Posts: 565
06 Nov 2011 08:12 PM
msg = "Hello"
msg2 = "World"
cout << msg + msg2 << endl;
Report Abuse
LevelNoobX is not online. LevelNoobX
Joined: 18 Sep 2011
Total Posts: 565
06 Nov 2011 08:13 PM
oops sorry im thinking of C++ :3

msg = "Hello"
msg2 = "World"

print(""..msg..""..msg2)
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
06 Nov 2011 08:15 PM
Doesn't anyone on this thread know how to script? It does not need (), it does not need to be in a loop, you do not need a space when you use the .. operator.

@LevelNoobX

char msg[5] = "Hello";
char msg2[5] = "World";
std::cout << msg + msg2 << std::endl;
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
06 Nov 2011 08:16 PM
Late post. But still, oh brother.

print(""..Blah) is a waste of typing and space, and readability. print(Blah) has the same effect.
Report Abuse
LevelNoobX is not online. LevelNoobX
Joined: 18 Sep 2011
Total Posts: 565
06 Nov 2011 08:16 PM
wow.... Lucky I barley know C++.
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