Author Topic: yep its another syntax error  (Read 150 times)

oh my gooood i hate making topics like this because the problem always seems really really really really really obvious once its solved but i [emph]seriously[/emph] cant see anything wrong with this code i have no idea why theres an error

okay so my friend wanted cooler push brooms so i made cooler push brooms and they worked fine but then he wanted people to get score for killing other people with the push brooms (by pushing them into lava) and i thought "hey rising lava has that code" so i went to the main.cs in gamemode_rising_lava and trimmed it down a lot then put it in its own add-on but all of a sudden it doesnt work at all and the little ## stuffs dont help at all so please tell me whats wrong *passes out*

also is there a better way to detect if the other addon is there



https://pastebin.com/tceB8jFD - server.cs, modified code
https://pastebin.com/cnxJfy18 - main.cs, original code

You can't declare functions inside a conditional if block. Functions must be declared on the first layer of all bracket blocks, which means they can't be nested inside any other block of instruction
« Last Edit: July 12, 2018, 06:30:25 PM by thegoodperry »

You can't declare functions inside a conditional if block. Functions must be declared on the first layer of all bracket blocks, which means they can't be nested inside any other block of instruction
oh
thats not as obvious as i thought
i guess ill just forcerequiredaddon