Welcome to the forums, Ryu
For createunit to work, you must spawn the unit into an
existing group. So you must have a unit already in that group.
Your line here:
Groupname = group Alpha
isn't quite right... try:
group = group this
where
group is the name of your group (ie. alpha)
Now, you can create a unit using the first line you had:
"SoldierWB" createunit [getpos g1,
group ]
Just note the soldier type ("SoldierWB" in this case) must be an actual type. Check the official command reference for the types
Oh, on a side note...
Your line Crashnburn:
soldier1 = "SoldierWMG" createunit [getpos g1, Alpha, "", 1, "PRIVATE"]
won't have the desired effect. To assign a created unit a name, you need to use a line like this:
"SoldierWMG" createunit [getpos g1, Alpha, "soldier1 = this", 1, "PRIVATE"]
Assigning the whole line equal to the command will work on created vehicles, but not units. To assign units a name you need to include it in the
init part of the syntax