Pennywise – User talk

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
loadFile returns string, in ArmA call needs code, so it should be clear that it has to be "compiled" before. But you can put it in the examples, if you want. --[[User:Raedor|raedor]] 11:42, 28 November 2006 (CET)
loadFile returns string, in ArmA call needs code, so it should be clear that it has to be "compiled" before. But you can put it in the examples, if you want. --[[User:Raedor|raedor]] 11:42, 28 November 2006 (CET)
Re: ''Unable to comment brackets out in .sqf file. Commented out brackets are still processed by the .sqf parser resulting in errors. ''
I took your example and tried that line in a single sqf file and didn't receive any errors. I don't think this is a bug but perhaps some other line maybe producing the error?  I'm running the sqf like this:  dummy= execvm "blah.sqf".  [[User:Hoz|hoz]]
:try call compile loadfile "blah.sqf". [[User:Pennywise|Pennywise]] 20:44, 11 January 2007 (CET)
::C-like comments (/*this is a comment*/ and //this is a comment) only work with preprocessFile (instead of loadFile) ;) --[[User:Raedor|raedor]] 22:10, 11 January 2007 (CET)

Latest revision as of 22:10, 11 January 2007

loadFile returns string, in ArmA call needs code, so it should be clear that it has to be "compiled" before. But you can put it in the examples, if you want. --raedor 11:42, 28 November 2006 (CET)

Re: Unable to comment brackets out in .sqf file. Commented out brackets are still processed by the .sqf parser resulting in errors. I took your example and tried that line in a single sqf file and didn't receive any errors. I don't think this is a bug but perhaps some other line maybe producing the error? I'm running the sqf like this: dummy= execvm "blah.sqf". hoz

try call compile loadfile "blah.sqf". Pennywise 20:44, 11 January 2007 (CET)
C-like comments (/*this is a comment*/ and //this is a comment) only work with preprocessFile (instead of loadFile) ;) --raedor 22:10, 11 January 2007 (CET)