Undefined variable in included Lib

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

Undefined variable in included Lib

Post 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
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    Post Reply

    Return to “ManiaScript”

    Who is online

    Users browsing this forum: No registered users and 1 guest