Pennywise – User talk

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
Line 4: Line 4:
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]]
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)
: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 23: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)