[HELP]Server starts then closes
#1

Hey guys, i've yet again been working on another script, though now when i start samp_server.exe it closes but nothing prints into the log, the script compiles successfully and i cant see a reason stopping it, all scriptfiles are there, help please? thanks.

((Also just let me know in a reply if you need to see part of the script))
Reply
#2

Did you put the filterscripts in the right order plugins? Changed the password? Etc.
Reply
#3

Quote:
Originally Posted by ♣ ©ⓤⓝⓔⓞ ♣
Hey guys, i've yet again been working on another script, though now when i start samp_server.exe it closes but nothing prints into the log, the script compiles successfully and i cant see a reason stopping it, all scriptfiles are there, help please? thanks.

((Also just let me know in a reply if you need to see part of the script))
you may miss something in server.cfg or if you are using any FSs then it may be some bug in it . Go to Server.cfg and check server password and remove all the FSs and then try .
Reply
#4

or just post the server.log here
Reply
#5

Code:
echo Executing Server Config...
lanmode 0
rcon_password ********
maxplayers 500
port 7777
hostname Biological Warfare 0.1.1
gamemode0 BioWar 1
filterscripts
announce 0
query 1
weburl coming soon!
maxnpc 100
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
this is my server.cfg, and this is my log:

pawn Code:
----------
Loaded log file: "server_log.txt".
----------

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

[13:49:52] filterscripts = "" (string)
[13:49:52]
[13:49:52] Server Plugins
[13:49:52] --------------
[13:49:52] Loaded 0 plugins.

[13:49:52]
[13:49:52] Filter Scripts
[13:49:52] ---------------
[13:49:52]  Loaded 0 filter scripts.
i cant seem to work this out though.
Reply
#6

there must be something wrong inside your GM
try debugging (adding prints) after everyline in OnGameModeInit and OnGameModeExit
Reply
#7

I have herE:

OnGameModeInit:
pawn Code:
public OnGameModeInit()
{
  SetTimer("RenewTowers", 60000, 1);
  AddBase(1609.4414,1654.029,23.3);
  AddBase(208.935,1931.253,23.142);
    //------------TextDraws-----------//
    //-----------Ranks--------------//
    tRank = TextDrawCreate(505.000000,99.000000,"");
    TextDrawAlignment(tRank,0);
    TextDrawBackgroundColor(tRank,0x000000ff);
    TextDrawFont(tRank,1);
    TextDrawLetterSize(tRank,0.499999,1.000000);
    TextDrawColor(tRank,0xffffffff);
    TextDrawSetOutline(tRank,1);
    TextDrawSetProportional(tRank,1);
    TextDrawSetShadow(tRank,1);
    //----//
    for ( new i; i < sizeof( GoggleText ); i ++ )
    {
        GoggleText[ i ] = TextDrawCreate( 0.0, 0.0, "." );
    TextDrawLetterSize( GoggleText[ i ], 0.0, 80.0 );
    TextDrawUseBox( GoggleText[ i ], true );
    }
    TextDrawColor( GoggleText[ 0 ], WHITE(FF) );
    TextDrawColor( GoggleText[ 1 ], GREEN(FF) );
    TextDrawColor( GoggleText[ 2 ], GREEN(BB) );
  TextDrawColor( GoggleText[ 3 ], GREEN(88) );
  TextDrawColor( GoggleText[ 4 ], GREEN(44) );
  TextDrawBoxColor( GoggleText[ 0 ], WHITE(FF) );
  TextDrawBoxColor( GoggleText[ 1 ], GREEN(FF) );
  TextDrawBoxColor( GoggleText[ 2 ], GREEN(BB) );
  TextDrawBoxColor( GoggleText[ 3 ], GREEN(88) );
  TextDrawBoxColor( GoggleText[ 4 ], GREEN(44) );
    CoverScreen = TextDrawCreate(0.0,0.0,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~");
    TextDrawFont(CoverScreen,1);
    TextDrawLetterSize(CoverScreen,50,50);
    TextDrawColor(CoverScreen,0x000000FF);
    TextDrawSetShadow(CoverScreen,1);
    TextDrawSetOutline(CoverScreen,50);
    TextDrawBackgroundColor(CoverScreen,0x000000FF);
    TextDrawUseBox(CoverScreen,1);
    TextDrawBoxColor(CoverScreen,0x000000FF);
    Welcome = TextDrawCreate(555.000000, 5.000000,"~w~~y~Welcome to Biological Warfare");
    TextDrawLetterSize(Welcome,0.4,1.0);
    TextDrawFont(Welcome,3);
    TextDrawBackgroundColor(Welcome,0x000000AA);
    TextDrawSetOutline(Welcome,1);
    TextDrawAlignment(Welcome, 2);
  print("\nxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
  print("X     Biological Warfare BETA V1.1    X");
  print("X    created by ©un3o. 13/12/2009   X");
    print("XxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxX\n");
    AddRank(1, "Private In Training", 0, 0, 100.0, 0, 0, 0);
    AddRank(2, "Private", 1, 0, 100.0, 0, 0, 0);
    AddRank(3, "Private First Class", 15, 0, 100.0, 100.0, 0, 0);
    AddRank(4, "Corporal", 25, 0, 100.0, 100.0, 0, 0);
    AddRank(5, "Sergeant", 35, 0, 100.0, 100.0, 0, 0);
    AddRank(6, "Staff Sergeant", 45, 0, 100.0, 100.0, 0, 0);
    AddRank(7, "Master Sergeant", 55, 0, 100.0, 100.0, 0, 0);
    AddRank(8, "First Sergeant", 70, 0, 100.0, 100.0, 0, 0);
    AddRank(9, "Sergeant Major", 80, 0, 100.0, 100.0, 0, 0);
    AddRank(10, "Warrant Officer I", 90, 0, 100.0, 100.0, 0, 0);
    AddRank(11, "Warrant Officer II", 100, 0, 100.0, 100.0, 0, 0);
    AddRank(12, "Warrant Officer III", 110, 0, 100.0, 100.0, 0, 0);
    AddRank(13, "Warrant Officer IIII", 120, 0, 100.0, 100.0, 0, 0);
    AddRank(14, "Warrant Officer IIIII", 130, 0, 100.0, 100.0, 0, 0);
    AddRank(15, "Second Lieutenant", 140, 0, 100.0, 100.0, 0, 0);
    AddRank(16, "First Lieutenant", 150, 0, 100.0, 100.0, 0, 0);
    AddRank(17, "Captain", 160, 0, 100.0, 100.0, 0, 0);
    AddRank(18, "Major", 170, 0, 100.0, 100.0, 0, 0);
    AddRank(19, "Lieutenant Colonel", 180, 0, 100.0, 100.0, 0, 0);
    AddRank(20, "Colonel", 190, 0, 100.0, 100.0, 0, 0);
    AddRank(21, "Brigadier General", 200, 0, 100.0, 100.0, 0, 0);
    AddRank(22, "Major General", 220, 0, 100.0, 100.0, 0, 0);
    AddRank(23, "Lieutenant General", 240, 0, 100.0, 100.0, 0, 0);
    AddRank(24, "General", 260, 0, 100.0, 100.0, 0, 0);
    AddRank(25, "General of the Army", 280, 0, 100.0, 100.0, 0, 0);
    LoadConfigFile();

    if(HealthCheck == 1) // If HealthCheck is Enablbed
    {
        HealthTimer = SetTimer("AntiHealthHack",    3000,  1);  // All 3.0 Seconds a check
    }
    if(ArmourCheck == 1) // If ArmourCheck is Enablbed
    {
        ArmourTimer = SetTimer("AntiArmourHack",    3000,  1);  // All 3.0 Seconds a check
    }
    if(JetpackCheck == 1) // If JetpackCheck is Enablbed
    {
        JetpackTimer = SetTimer("AntiJetpack",  700,  1);   // All 0.7 Seconds a check
    }
    if(WeaponCheck == 1) // If WeaponCheck is Enablbed
    {
        WeaponTimer = SetTimer("AntiWeaponHack",    800,  1);   // All 0.8 Seconds a check
    }
    if(MoneyCheck == 1) // If MoneyCheck is Enablbed
    {
        MoneyTimer = SetTimer("AntiMoneyHack",  4000,   1);     // All 4    Seconds a check
    }
    if(AmmoCheck == 1) // If AmmoCheck is Enablbed
    {
        AmmoTimer = SetTimer("AntiAmmoHack",        5000,   1);   // All 5  Seconds a check
    }
    if(BotCheck == 1) // If BotCheck is Enablbed
    {
        BotTimer = SetTimer("AntiBot",              150000, 1);   // All 2,5 Minutes a check
    }
    if(PosCheck == 1) // If PosCheck is Enablbed
    {
        PosTimer = SetTimer("AntiPositionHack",     1000, 1);       // Jede     Seconds a check
    }

    SetTimer("ResetMute",       300000, 1);     // All 5    Minutes a Reset
    SetTimer("PingKick",        10000, 1);   // All 10  Seconds a check

    ForbiddenWordsLoad();
    ForbiddenNamesLoad();
    return 1;
}
also this is how it prints:

pawn Code:
----------
Loaded log file: "server_log.txt".
----------

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

[14:06:15] filterscripts = "" (string)
[14:06:15]
[14:06:15] Server Plugins
[14:06:15] --------------
[14:06:15] Loaded 0 plugins.

[14:06:15]
[14:06:15] Filter Scripts
[14:06:15] ---------------
[14:06:15]  Loaded 0 filter scripts.
Reply
#8

nonono, I meant add eg.
pawn Code:
print("test");
between EVERY SINGLE LINE inside OnGameModeInit.
Then in the server log after the server crashes, count how many lines which contains the text "test" then find the same line in GM

example:
pawn Code:
public OnGameModeInit()
{
  print(" MyGM made by ME ");
  print("test"); //#1
  SetGameModeText("MyGM");
  print("test"); //#2
  myVar = 2345;
  print("test"); //#3
  return true;
}
Then if your server log only show you one or two "test"
like this:
Code:
 MyGM made by ME 
test
test
that means that the line before the last "test"-print, crashes the server.
Reply
#9

Alright i've got it but now i seem to get this:

pawn Code:
----------
Loaded log file: "server_log.txt".
----------

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

[14:32:37]
[14:32:37] Server Plugins
[14:32:37] --------------
[14:32:37] Loaded 0 plugins.

[14:32:37]
[14:32:37] Filter Scripts
[14:32:37] ---------------
[14:32:37]  Loading filter script 'chinatown.amx'...
[14:32:37]
--------------------------------------
[14:32:37] Blank Filterscript by your name here
[14:32:37] --------------------------------------

[14:32:38]  Loaded 1 filter scripts.

[14:32:38]
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[14:32:38] X     Biological Warfare BETA V1.1    X
[14:32:38] X    created by (C)un3o. 13/12/2009   X
[14:32:38] XxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxX

[14:32:38] (G33K-A-CHEAT): 7 forbidden Words loaded

[14:32:38] (G33K-A-CHEAT): 4 forbidden Names loaded

[14:32:38] Script[gamemodes/Bombing.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
Any ideas?
Reply
#10

add this to your script:
pawn Code:
main()
{
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)