Custom Script Problem

Hi , im really new in C++ and i have a problem with a custom C++ script.

Here is the script:

Paste 1tgaiviqshdgs - TrinityCore

The problem is when i compile i get error C2447: ‘{’ : missing function header (old-style formal list?) and i don’t know how to solve it.

};

{

new cs_world_chat();

}

Missing something here…

If you can’t figure out what, try looking at some other scripts…

void AddSC_cs_world_chat()

{

new cs_world_chat();

}

maybe ?

Edit: It Worked /emoticons/default_biggrin.png , ty Paradox