Page 1 of 1

Print command ??

Posted: Sat Apr 11, 2020 1:49 pm
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...

RE: Print command ??

Posted: Sat Apr 11, 2020 2:19 pm
by KnightHawk75
lowercase print vs uppercase Print which is invalid? Case gets the best of us all sometimes.

RE: Print command ??

Posted: Sat Apr 11, 2020 4:03 pm
by Gunner98
Doh!

Thanks.


RE: Print command ??

Posted: Sun Apr 12, 2020 6:34 am
by michaelm75au
Lua is VERY case sensitive!!