User Tools

Site Tools


scar_coding

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
scar_coding [2024/01/21 14:47] rap6torscar_coding [2025/01/10 11:27] (current) – old revision restored (2024/01/21 14:49) admin
Line 37: Line 37:
  
 Code: Code:
 +<code>
 arms = 1000 -- qqq temporary test value to see if function working arms = 1000 -- qqq temporary test value to see if function working
 +</code>
 You can also disable chunks of code by commenting it out with square brackets You can also disable chunks of code by commenting it out with square brackets
  
 Code: Code:
 +<code>
 --[[ putting 2 hyphens and 2 square brackets here comments out the following code --[[ putting 2 hyphens and 2 square brackets here comments out the following code
  
Line 53: Line 53:
  
 ]]     -- the last 2 square brackets ends the commenting ]]     -- the last 2 square brackets ends the commenting
 +</code>
 Prevention: Liberally use comments Prevention: Liberally use comments
  
Line 255: Line 255:
  
 Code: Code:
 +<code>
 SGroup_Add(sgroup1)  -- this won't work SGroup_Add(sgroup1)  -- this won't work
  
 SGroup_Add(sgroup1, squad2) -- this will work SGroup_Add(sgroup1, squad2) -- this will work
 +</code>
 Prevention/Fix: Check the scar doc for the right number of parameters for the function Prevention/Fix: Check the scar doc for the right number of parameters for the function
  
scar_coding.1705848459.txt.gz · Last modified: 2024/01/21 14:47 by rap6tor