Print command ??

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
User avatar
Gunner98
Posts: 5998
Joined: Fri Apr 29, 2005 12:49 am
Location: The Great White North!
Contact:

Print command ??

Post by Gunner98 »

OK this is really basic stuff but I'm running into problems with a 'print' command. I'm just trying to see what the result is when I use the ScenEdit_GetMinefield command.

Local a = ScenEdit_GetMinefield({side='Houthi Rebels', area={'RP-727','RP-728', 'RP-729', 'RP-730'} } )
Print (a)

ERROR: [string "Console"]:2: attempt to call a nil value (global 'Print')

or
Print(ScenEdit_GetMinefield({side='Houthi Rebels', area={'RP-727','RP-728', 'RP-729', 'RP-730'} } ))

ERROR: [string "Console"]:1: attempt to call a nil value (global 'Print')

Not sure what I'm doing wrong here...
Check out our novel, Northern Fury: H-Hour!: http://northernfury.us/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/
KnightHawk75
Posts: 1850
Joined: Thu Nov 15, 2018 7:24 pm

RE: Print command ??

Post by KnightHawk75 »

lowercase print vs uppercase Print which is invalid? Case gets the best of us all sometimes.
User avatar
Gunner98
Posts: 5998
Joined: Fri Apr 29, 2005 12:49 am
Location: The Great White North!
Contact:

RE: Print command ??

Post by Gunner98 »

Doh!

Thanks.

Check out our novel, Northern Fury: H-Hour!: http://northernfury.us/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/
User avatar
michaelm75au
Posts: 12464
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

RE: Print command ??

Post by michaelm75au »

Lua is VERY case sensitive!!
Michael
Post Reply

Return to “Lua Legion”