Page 1 of 1

Undefined variable in included Lib

Posted: 03 Aug 2013, 14:34
by steeffeen
hey there,

i tried using the Settings Lib to load some configs on server start but ran into an issue which is preventing me from properly using the lib...

Mode Script:

Code: Select all

***StartServer***
***
MyScript::Load();
***
MyScript:

Code: Select all

#Include "Libs/Nadeo/Settings.Script.txt" as Settings
Void Load() {
Settings::Load();
declare Loaded = Settings::LoadFromUrl("url.com");
}
when loading the url the script fails already.. -.-
it says the following for line 81:
Variable G_LibSettings_SettingsRequest has been undefined since its declaration
it seems like it's caused by the fact that my game mode is including a script which is including the settings lib
when i include the settings lib directly in the game mode script it's working fine

a fix would be awesome :)

regards
steff