(06-19-2015, 02:24 AM)NotASkrub Wrote: Thank you for the code help, and no, for me if I dont write ";" before the end of the "}"
it will give me an error expecting a ";" before "}"
;d
Really? o.0
That is awfully strange. The reason for that error is to explain that at a certain line (it could be the one they mention, or any before it, usually within the same function bracket), that you're missing a semicolon at the
end of a function.
Say I have these:
AddEntityCollideCallback("Player", "scr_jumpscare", "activate_jumpscare", true, 0)
AddEntityCollideCallback("Playee", "scr_scarymusic", "activate_scarymusic", true, 0);
The first Callback above will error the whole code, since it is missing a semicolon. It can be fixed by putting a semicolon on the new line, but it looks wrong from a coder's perspective.
So if we put a semicolon on the end, or delete the whole line, then the error should not show. (And in my case, I would delete it, because very little jumpscares are good scares).