ID:139826
 
Man, something is weird today. Two errors in a row? That hasn't happened to me in a long time. Anyways, here is the code.
mob/Owner
verb
View_Bugs()
file2text('Bug reports.htm')


loading Terror.dme
loading Map and Interface\skin.dmf
Code\Staff.dm:28:warning: file2text: statement has no effect
loading Map and Interface\map.dmm
saving Terror.dmb

Terror.dmb - 0 errors, 1 warning (double-click on an error to jump to it)

Please tell me why it's doing that. It even said in the guide: "file2text(File)
File is the name of the file.
Returns contents as a text string."
Narutorox123456 wrote:
file2text('Bug reports.htm')

Code\Staff.dm:28:warning: file2text: statement has no effect
Terror.dmb - 0 errors, 1 warning (double-click on an error to jump to it)

Please tell me why it's doing that. It even said in the guide: "file2text(File)
File is the name of the file.
Returns contents as a text string."

It returns the contents of the file as a text string, but your code doesn't do anything with it. If you sent it to world for example, the warning would go away, because something is actually being done.

world << file2text('Bug reports.htm')
<s>You're not doing anything with it, like storing it in a variable, or displaying it.</s>
What Skyspark said.
In response to Skyspark
Skyspark wrote:
Narutorox123456 wrote:
file2text('Bug reports.htm')

Code\Staff.dm:28:warning: file2text: statement has no effect
Terror.dmb - 0 errors, 1 warning (double-click on an error to jump to it)

Please tell me why it's doing that. It even said in the guide: "file2text(File)
File is the name of the file.
Returns contents as a text string."

It returns the contents of the file as a text string, but your code doesn't do anything with it. If you sent it to world for example, the warning would go away, because something is actually being done.

world << file2text('Bug reports.htm')

Oh ok. Today my head isn't working right or something. I will fix it. Thanks!