error: Missing LHS variable

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

error: Missing LHS variable

Post by enric »

What is a LHS variable?. There are not left-parameters or right-parameters in BA functions.
....
I read somewhere that the maximum parameters for a function is 8, but I see scripts using more than that, when I tried to use I received the above message, maybe there is a relationship.
pipfromslitherine
Site Admin
Site Admin
Posts: 9937
Joined: Wed Mar 23, 2005 10:35 pm

Re: error: Missing LHS variable

Post by pipfromslitherine »

The error message shows the area in the code where the mistake is. Missing LHS usually means you are trying to assign a value to something that isn't a variable? It is impossible to say without knowing where the error happens.

Cheers

Pip
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: error: Missing LHS variable

Post by enric »

Found thank you,

What about the 8 parameters limit', it seems to work with more, it's safe?
pipfromslitherine
Site Admin
Site Admin
Posts: 9937
Joined: Wed Mar 23, 2005 10:35 pm

Re: error: Missing LHS variable

Post by pipfromslitherine »

The max is actually 12, but in some cases some are used internally. So use more than 8 at your own risk ;).

Cheers

Pip
Post Reply

Return to “Battle Academy : Modders Corner ”