server restarting
#1

the server keeps restarting,
i don't know why!
Reply
#2

More info plz....
Reply
#3

Check the server_log.txt for any info. If that doesn't work, then debug every function in your script then check it again
Reply
#4

i start the server with samp-server.exe
he starts, and when you login there stand: restarting blablablabla restarting blablablabla restarting
and so the whole time
then i check samp-server.exe
and there i keep see the print text
a few seconds later
it shows again the print text
so first this:

a few seconds later:
Reply
#5

Show your OnGameModeInit
Reply
#6

this?:
pawn Код:
public OnGameModeInit()
{



  new string[MAX_PLAYER_NAME];
  new string1[MAX_PLAYER_NAME];
    for(new c=0;c<CAR_AMOUNT;c++)
    {
        Gas[c] = GasMax;
    }
    ShowPlayerMarkers(1);
    LoadProperty();
    LoadBizz();
    LoadSBizz();
    LoadBoxer();
    LoadStuff();
    LoadIRC();
    LoadFamilies();
    LoadCK();
    LoadTurfs();
    LoadPapers();
    IRCInfo[0][iPlayers] = 0; IRCInfo[1][iPlayers] = 0; IRCInfo[2][iPlayers] = 0;
    IRCInfo[3][iPlayers] = 0; IRCInfo[4][iPlayers] = 0; IRCInfo[5][iPlayers] = 0;
    IRCInfo[6][iPlayers] = 0; IRCInfo[7][iPlayers] = 0; IRCInfo[8][iPlayers] = 0;
    IRCInfo[9][iPlayers] = 0;
    News[hTaken1] = 0; News[hTaken2] = 0; News[hTaken3] = 0; News[hTaken4] = 0; News[hTaken5] = 0;
    format(string, sizeof(string), "Nothing");
    strmid(News[hAdd1], string, 0, strlen(string), 255);
    strmid(News[hAdd2], string, 0, strlen(string), 255);
    strmid(News[hAdd3], string, 0, strlen(string), 255);
    strmid(News[hAdd4], string, 0, strlen(string), 255);
    strmid(News[hAdd5], string, 0, strlen(string), 255);
    format(string1, sizeof(string1), "No-one");
    strmid(News[hContact1], string1, 0, strlen(string1), 255);
    strmid(News[hContact2], string1, 0, strlen(string1), 255);
    strmid(News[hContact3], string1, 0, strlen(string1), 255);
    strmid(News[hContact4], string1, 0, strlen(string1), 255);
    strmid(News[hContact5], string1, 0, strlen(string1), 255);
    PlayerHaul[78][pCapasity] = 100;
    PlayerHaul[79][pCapasity] = 100;
    PlayerHaul[80][pCapasity] = 50;
    PlayerHaul[81][pCapasity] = 50;
    SetGameModeText("Nanozoft RP 1.0");
    format(objstore, sizeof(objstore), "MOLE: I got nothing, check back with me later.");
    format(cbjstore, sizeof(cbjstore), "HQ: There is nothing in your Vicinity, Out.");
    format(motd, sizeof(motd), "");
    gettime(ghour, gminute, gsecond);
    FixHour(ghour);
    ghour = shifthour;
    if(!realtime)
    {
        SetWorldTime(wtime);
    }
    SetPDistance(10);
    AllowInteriorWeapons(1);
    AllowAdminTeleport(0);
    UsePlayerPedAnims();
    // CreatedCars check
    for(new i = 0; i < sizeof(CreatedCars); i++)
    {
      CreatedCars[i] = 0;
    }
    // Zones
    for(new i = 0; i < sizeof(TurfInfo); i++)
    {
      Turfs[i] = GangZoneCreate(TurfInfo[i][zMinX],TurfInfo[i][zMinY],TurfInfo[i][zMaxX],TurfInfo[i][zMaxY]);
    }
    // Player Class's
    for(new i = 0; i <= sizeof(Peds)-1; i++)
    {
        AddPlayerClass(Peds[i][0],1958.3783,1343.1572,1100.3746,269.1425,-1,-1,-1,-1,-1,-1);
    }
    // Car Spawns
    for(new h = 0; h < sizeof(HouseInfo); h++)
    {
        AddStaticVehicleEx(HouseInfo[h][hVec], HouseCarSpawns[h][0], HouseCarSpawns[h][1], HouseCarSpawns[h][2], HouseCarSpawns[h][3], HouseInfo[h][hVcol1], HouseInfo[h][hVcol2], 60000);
        gCarLock[h+1] = 1;
    }
Reply
#7

Copy this back, compile, run and check the server_log.txt again. It will show you where your code fails

pawn Код:
public OnGameModeInit()
{
    printf("Stage 1");
    new string[MAX_PLAYER_NAME];
    new string1[MAX_PLAYER_NAME];
    printf("Stage 2");
    for(new c=0;c<CAR_AMOUNT;c++)
    {
        Gas[c] = GasMax;
    }
    printf("Stage 3");
    ShowPlayerMarkers(1);
    printf("Stage 4");
    LoadProperty();
    printf("Stage 5");
    LoadBizz();
    printf("Stage 6");
    LoadSBizz();
    printf("Stage 7");
    LoadBoxer();
    printf("Stage 8");
    LoadStuff();
    printf("Stage 9");
    LoadIRC();
    printf("Stage 10");
    LoadFamilies();
    printf("Stage 11");
    LoadCK();
    printf("Stage 12");
    LoadTurfs();
    printf("Stage 13");
    LoadPapers();
    printf("Stage 14");
    IRCInfo[0][iPlayers] = 0; IRCInfo[1][iPlayers] = 0; IRCInfo[2][iPlayers] = 0;
    IRCInfo[3][iPlayers] = 0; IRCInfo[4][iPlayers] = 0; IRCInfo[5][iPlayers] = 0;
    IRCInfo[6][iPlayers] = 0; IRCInfo[7][iPlayers] = 0; IRCInfo[8][iPlayers] = 0;
    IRCInfo[9][iPlayers] = 0;
    printf("Stage 15");
    News[hTaken1] = 0; News[hTaken2] = 0; News[hTaken3] = 0; News[hTaken4] = 0; News[hTaken5] = 0;
    format(string, sizeof(string), "Nothing");
    strmid(News[hAdd1], string, 0, strlen(string), 255);
    strmid(News[hAdd2], string, 0, strlen(string), 255);
    strmid(News[hAdd3], string, 0, strlen(string), 255);
    strmid(News[hAdd4], string, 0, strlen(string), 255);
    strmid(News[hAdd5], string, 0, strlen(string), 255);
    printf("Stage 16");
    format(string1, sizeof(string1), "No-one");
    strmid(News[hContact1], string1, 0, strlen(string1), 255);
    strmid(News[hContact2], string1, 0, strlen(string1), 255);
    strmid(News[hContact3], string1, 0, strlen(string1), 255);
    strmid(News[hContact4], string1, 0, strlen(string1), 255);
    strmid(News[hContact5], string1, 0, strlen(string1), 255);
    printf("Stage 17");
    PlayerHaul[78][pCapasity] = 100;
    PlayerHaul[79][pCapasity] = 100;
    PlayerHaul[80][pCapasity] = 50;
    PlayerHaul[81][pCapasity] = 50;
    SetGameModeText("Nanozoft RP 1.0");
    printf("Stage 18");
    format(objstore, sizeof(objstore), "MOLE: I got nothing, check back with me later.");
    format(cbjstore, sizeof(cbjstore), "HQ: There is nothing in your Vicinity, Out.");
    format(motd, sizeof(motd), "");
    printf("Stage 19");
    gettime(ghour, gminute, gsecond);
    FixHour(ghour);
    ghour = shifthour;
    printf("Stage 20");
    if(!realtime)
    {
        SetWorldTime(wtime);
    }
    printf("Stage 21");
    SetPDistance(10);
    AllowInteriorWeapons(1);
    AllowAdminTeleport(0);
    UsePlayerPedAnims();
    printf("Stage 22");
    // CreatedCars check
    for(new i = 0; i < sizeof(CreatedCars); i++)
    {
      CreatedCars[i] = 0;
    }
    printf("Stage 23");
    // Zones
    for(new i = 0; i < sizeof(TurfInfo); i++)
    {
      Turfs[i] = GangZoneCreate(TurfInfo[i][zMinX],TurfInfo[i][zMinY],TurfInfo[i][zMaxX],TurfInfo[i][zMaxY]);
    }
    printf("Stage 24");
    // Player Class's
    for(new i = 0; i <= sizeof(Peds)-1; i++)
    {
        AddPlayerClass(Peds[i][0],1958.3783,1343.1572,1100.3746,269.1425,-1,-1,-1,-1,-1,-1);
    }
    printf("Stage 25");
    // Car Spawns
    for(new h = 0; h < sizeof(HouseInfo); h++)
    {
        AddStaticVehicleEx(HouseInfo[h][hVec], HouseCarSpawns[h][0], HouseCarSpawns[h][1],  HouseCarSpawns[h][2], HouseCarSpawns[h][3], HouseInfo[h][hVcol1], HouseInfo[h][hVcol2], 60000);
        gCarLock[h+1] = 1;
    }
    return 0;
}
Reply
#8

i fixed it!
i have a very stupid action made!
i don't copyed the script files :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)