mob
Star_Ships
Black1
var
global
basecodenum = 0
icon='Star Ships.dmi'
name = "Black"
New()
var/newcodenum = basecodenum += 1 // This is where the error is!
var/codenum = newcodenum
basecodenum += 1
src.suffix = codenum
This is a simple codenumber-giving proc that I wrote. However, it does not generate a code number. It generates an error.
loading Space Adventure.dme Chars.dm:15:error: +=: expected end of statement Chars.dm:15:error: missing left-hand argument to +=. Space Adventure.dmb - 3 errors, 0 warnings
First of all, it dosn't show 3 errors. Second of all, there is already a left hand arguement to +=, isn't there?
I do not understand this. :(
the line var/newcodenum = basecodenum += 1
try changing it to this...
var/newcodenum = basecodenum+1
if i am correct. this should eliminate the other 2.. which may be spawned due to the first error.. i get that alott. all other codes beneath this may be affected.. but easily fixed. if the top is fixed... soo. try this and show results :-D ill try to help if it doesnt work.