Skip to content

Commit 3e8db7e

Browse files
authored
code: fix Msg() in global scope (#9)
1 parent 07aa606 commit 3e8db7e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

code/init.as

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66

77
// Only print this message once, on the server :)
88
#if SERVER
9-
Msg("Sample content has been loaded in this game session\n");
9+
[LevelInitPreEntity]
10+
void OnInit() {
11+
Msg("Sample content has been loaded in this game session\n");
12+
}
1013
#endif
1114

1215
// Include our server-side only scripts

0 commit comments

Comments
 (0)