Help **Important**
#1

Alright, so i got my admin system basically all down, but here's the problem.. when i open it all it does is open a close immediately.

Entire Script

http://pastebin.com/c2j3iFp9

It started after i added these lines under
pawn Код:
public OnGameModeInit()
pawn Код:
if(!fexist(SettingFile))
    {
        dini_Create(SettingFile);
        dini_IntSet(SettingFile, "PocketMoney", 3000);
        dini_IntSet(SettingFile, "JailCommands", 0);
        dini_IntSet(SettingFile, "AnnounceSeconds", 3);
        dini_IntSet(SettingFile, "PassMin", 3);
        dini_IntSet(SettingFile, "PassMax", 15);
    }

    gSettings[POCKET_MONEY]         = dini_Int(SettingFile, "PocketMoney");
    gSettings[JAIL_COMMANDS]        = dini_Int(SettingFile, "JailCommands");
    gSettings[ANNOUNCE_SECONDS]         = dini_Int(SettingFile, "AnnounceSeconds");
    gSettings[PASS_MIN]             = dini_Int(SettingFile, "PassMin");
    gSettings[PASS_MAX]             = dini_Int(SettingFile, "PassMax");

    if(!fexist(CommandFile))
    {
        dini_Create(CommandFile);
        dini_IntSet(CommandFile, "Akill", 6);
        dini_IntSet(CommandFile, "Announce", 5);
        dini_IntSet(CommandFile, "Armourall", 3);
        dini_IntSet(CommandFile, "Ban", 9);
        dini_IntSet(CommandFile, "Carhp", 4);
        dini_IntSet(CommandFile, "Explode", 5);
        dini_IntSet(CommandFile, "Goto", 4);
        dini_IntSet(CommandFile, "Gethere", 5);
        dini_IntSet(CommandFile, "Givearmour", 6);
        dini_IntSet(CommandFile, "Givehealth", 6);
        dini_IntSet(CommandFile, "Giveweapon", 7);
        dini_IntSet(CommandFile, "God", 10);
        dini_IntSet(CommandFile, "Healall", 7);
        dini_IntSet(CommandFile, "Imitate", 8);
        dini_IntSet(CommandFile, "Ip", 2);
        dini_IntSet(CommandFile, "Kick", 7);
        dini_IntSet(CommandFile, "Maxammo", 8);
        dini_IntSet(CommandFile, "Ping", 1);
        dini_IntSet(CommandFile, "Setlevel", 10);
        dini_IntSet(CommandFile, "Setwanted", 6);
        dini_IntSet(CommandFile, "Tban", 9);
        dini_IntSet(CommandFile, "Time", 3);
        dini_IntSet(CommandFile, "Weather", 3);
    }

    gCommands[AKILL]            = dini_Int(CommandFile, "Akill");
    gCommands[ANNOUNCE]             = dini_Int(CommandFile, "Announce");
    gCommands[ARMOURALL]            = dini_Int(CommandFile, "Armourall");
    gCommands[BAN]              = dini_Int(CommandFile, "Ban");
    gCommands[CARHP]            = dini_Int(CommandFile, "Carhp");
    gCommands[EXPLODE]          = dini_Int(CommandFile, "Explode");
    gCommands[GOTO]             = dini_Int(CommandFile, "Goto");
    gCommands[GETHERE]          = dini_Int(CommandFile, "Gethere");
    gCommands[GIVEARMOUR]           = dini_Int(CommandFile, "Givearmour");
    gCommands[GIVEHEALTH]           = dini_Int(CommandFile, "Givehealth");
    gCommands[GIVEWEAPON]           = dini_Int(CommandFile, "Giveweapon");
    gCommands[GOD]              = dini_Int(CommandFile, "God");
    gCommands[HEALALL]          = dini_Int(CommandFile, "Healall");
    gCommands[IMITATE]          = dini_Int(CommandFile, "Imitate");
    gCommands[IP]               = dini_Int(CommandFile, "Ip");
    gCommands[KICK]             = dini_Int(CommandFile, "Kick");
    gCommands[MAXAMMO]          = dini_Int(CommandFile, "Maxammo");
    gCommands[SETLEVEL]             = dini_Int(CommandFile, "Setlevel");
    gCommands[SETWANTED]            = dini_Int(CommandFile, "Setwanted");
    gCommands[TBAN]             = dini_Int(CommandFile, "Tban");
    gCommands[TIME]             = dini_Int(CommandFile, "Time");
    gCommands[WEATHER]          = dini_Int(CommandFile, "Weather");

    return 1;
}
Here's my server log.
pawn Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3a R7, (C)2005-2010 SA-MP Team

[15:41:42]
[15:41:42] Server Plugins
[15:41:42] --------------
[15:41:42] Loaded 0 plugins.

[15:41:42]
[15:41:42] Filter Scripts
[15:41:42] ---------------
[15:41:42]  Loading filter script 'AneticRP.amx'...
[15:41:42] Textdraw file generated by
[15:41:42]   Zamaroht's textdraw editor was loaded.
[15:41:42]  Loading filter script 'spawner.amx'...
[15:41:42]  Loaded 2 filter scripts.

If someone knows why it's doing that could you please help me fix it.

Kind regards,
Patrick
Reply
#2

Check your server log.
Reply
#3

What is SettingFile?
Reply
#4

Quote:
Originally Posted by biltong
What is SettingFile?
The Settings for the admin script.
Reply
#5

I meant what did you define it as. Where you said SettingsFile = "blablabla"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)