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
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
|
| 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
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
| |
|
| |
|
|
| 06 Nov 2011 07:06 PM |
print'HOLY HAX NO ()'
-[::ƧѡÎḾḠΰῩ::]- -[::Maker of stuff and Helper of Scripting::]- |
|
|
| Report Abuse |
|
|
mityguy
|
  |
| Joined: 07 Jun 2008 |
| Total Posts: 5483 |
|
|
| 06 Nov 2011 07:29 PM |
String = "Hello" String1 = "World"
print (string .. string1)
|
|
|
| Report Abuse |
|
|
josh50000
|
  |
| Joined: 29 Nov 2009 |
| Total Posts: 697 |
|
|
| 06 Nov 2011 07:51 PM |
String = "Hello" String1 = "World"
print(String.." "..String1) |
|
|
| Report Abuse |
|
|
josh50000
|
  |
| Joined: 29 Nov 2009 |
| Total Posts: 697 |
|
|
| 06 Nov 2011 07:52 PM |
forgot the spaces
print(String .." ".. String1) |
|
|
| Report Abuse |
|
|
|
| 06 Nov 2011 08:12 PM |
msg = "Hello" msg2 = "World" cout << msg + msg2 << endl; |
|
|
| Report Abuse |
|
|
|
| 06 Nov 2011 08:13 PM |
oops sorry im thinking of C++ :3
msg = "Hello" msg2 = "World"
print(""..msg..""..msg2) |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 06 Nov 2011 08:16 PM |
| wow.... Lucky I barley know C++. |
|
|
| Report Abuse |
|
|