Crash InGame

Započeo noddy_, Novembar 26, 2021, 12:01:49 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Problem(error/warning): Znaci, uzeo sam ATH iz sprdancije da nesto uradim na modu, i prvo sta sam uradio promjenio RegisterTD, radilo za divno cudo zatim sam zamjenio iz ATH u MH, Athlone u Miami House, i ono radi sve bez erora, prije tog mjenjanja register tdovi su radili normalno.I danas kada sam zamjenio izglede tekstova, connecta me i crasha
Deo skripte: [pawn]//[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //

Reinstalirao sam GTA 5 puta, TDEditor i ostalo mi normalno radi....
Poslednja Izmena: Novembar 27, 2021, 16:06:53 POSLE PODNE od мυмα
SPEED HACK (C++) https://github.com/nouddy/samp-speed-hack
Reliant GameMode (open.mp) https://github.com/nouddy/reliant-omp
SA:MP Landing Page https://github.com/nouddy/samp-landing-page


Kolko drama ima u 7 grama

Da li te crasha kada se konektas a nemas nalog, kada se konektas a imas nalog ili u oba slucaja?

Malo vise informacija daj :D


I da li crashdetect izbaci nesto u server_logu??

Citat: V01D poslato Novembar 26, 2021, 12:03:15 POSLE PODNE
Da li te crasha kada se konektas a nemas nalog, kada se konektas a imas nalog ili u oba slucaja?

Malo vise informacija daj :D


I da li crashdetect izbaci nesto u server_logu??
I kada nemam i kada imam nalog crasha.
Kada sam iz ATH mijenjao imao sam klasicni problema, Weather je bilo WeMHer, Death je bilo DeMH, i naravno to sam preimenovao i nema erora, ali opet crash
Crashdetect ne izbacuje nista
SPEED HACK (C++) https://github.com/nouddy/samp-speed-hack
Reliant GameMode (open.mp) https://github.com/nouddy/reliant-omp
SA:MP Landing Page https://github.com/nouddy/samp-landing-page


Kolko drama ima u 7 grama

Citat: ɴᴏᴅɪ poslato Novembar 26, 2021, 12:05:40 POSLE PODNE
I kada nemam i kada imam nalog crasha.
Kada sam iz ATH mijenjao imao sam klasicni problema, Weather je bilo WeMHer, Death je bilo DeMH, i naravno to sam preimenovao i nema erora, ali opet crash
Crashdetect ne izbacuje nista

U kom trenutku te crasha? Odmah cim se connectas? Ako da, posalji OnPlayerConnect ceo

Citat: V01D poslato Novembar 26, 2021, 12:08:43 POSLE PODNE
U kom trenutku te crasha? Odmah cim se connectas? Ako da, posalji OnPlayerConnect ceo
Connected joining the game, ono ne prikaze jos register ali me connecta


[pawn]
public OnPlayerConnect( playerid ) {
    ServerInfo[ BrojPosetaServeru ]++;
    SaveServerStats( );
   CheckRekord( );
    ObrisiObjekte( playerid );
    ResetPlayer( playerid );
    StopAudioStreamForPlayer( playerid );
   TogglePlayerDynamicCP( playerid, GarbageCheckpoint, 0 );
   PlayerInfo[ playerid ][ xOrobanoZ ] = 0;
   SetPlayerVirtualWorld(playerid, (playerid + 2000));
    SetPlayerColor(playerid, 0xAFAFAF00);

    #if ZIMSKI_MOD == 1
   EffectTimer[ playerid ] = SetTimerEx( "ActionEffect", 1900, true, "d", playerid );
   #endif

   CreatePlayerTextDraws( playerid );
   PreloadAnimations( playerid );

   new plajernejm[MAX_PLAYER_NAME];
   GetPlayerName(playerid, plajernejm, sizeof(plajernejm));

    new playersip[ 128 ];
    GetPlayerIp( playerid, playersip, sizeof( playersip ) );

   new string[ 128 ];
   format( string, sizeof( string ), "Igrac: %s | IP: %s ", ImeIgraca( playerid ), playersip );
   LogSave( "Ostalo/LogConnect.log", string );

   if( fexist( Korisnici( playerid ) ) ) {
       INI_ParseFile( Korisnici( playerid ), "OcitajKorisnika", .bExtra = true, .extra = playerid);

      if( PlayerInfo[ playerid ][ xBDays ] > 0) {
          new year,day,month;
         getdate( year, month, day );

         if( PlayerInfo[ playerid ][ xBDays ] > day && PlayerInfo[ playerid ][ xBMonths ] >= month && PlayerInfo[ playerid ][ xBYears ] >= year ) {
            SCM( playerid, CRVENA, "|=======================|BAN|=======================|");
            SendClientMessageEx( playerid, BELA, ""col_white"Banovan si sa ovog servera do "col_srvboja"%d/%d/%d"col_white".", PlayerInfo[ playerid ][ xBDays ], PlayerInfo[ playerid ][ xBMonths ], PlayerInfo[ playerid ][ xBYears ] );
            SCM( playerid, BELA, ""col_white"Zahtev za unban mozes traziti na "col_srvboja"forumu."col_white"");
            SCM( playerid, BELA, ""col_white"Forum: "col_srvboja"www.mhsamp.cf");
            SCM( playerid, CRVENA, "|===================================================|");
            Kickovanje( playerid, " ");
            return 1;
         }
      }

        if( PlayerInfo[ playerid ][ xBDays ] > 0) {
            new year,day,month;
         getdate( year, month, day );
            if( PlayerInfo[ playerid ][ xBDays ] < day ){
            PlayerInfo[ playerid ][ xBDays ] = 0;
         }
      }

      new banfile1[ 64 ];
       format( banfile1, 64, ZAKLJUCANI_FOLDER, plajernejm );
       if( fexist( banfile1 ) ) {
           new filed1[ 256 ], filed2[ 256 ], filed[ 512 ];
         format( filed1, 256, "{FFFFFF}- Vas Nick: (%s)\n\nVas account je zakljucan!\nDa vidite razlog za zakljucavanje acc-a posetite forum...\n",ImeIgraca( playerid ) );
           format( filed2, 256, "Ako zelite da vam se acc otkljuca moracete pisati zahtev na forumu.\nAdresa naseg foruma glasi: www.mhsamp.cf" );
           format( filed, 512, "%s%s", filed1, filed2 );
          SPD( playerid, 19999, DSMSG, ""col_srvboja"(Zakljucan Account)", filed, "Izlaz", "" );
         NODI_Kick( playerid );
         return 1;
       }

      if( PlayerInfo[ playerid ][ xRegistrovan ] == 1 ) {
          SetTimerEx( "Login", 100, false, "d", playerid );
      }
      else {

          if( ServerInfo[ Registracija ] == false ) {

              SendClientMessage( playerid, SERVERBOJA, "{737BE1}MH : Trenutno na server se nije moguce registrovati." );
              SendClientMessage( playerid, SERVERBOJA, "{737BE1}MH : Napustite server.Hvala!." );
              SetTimerEx( "KickIgraca", 150, false, "d", playerid );
              return 1;
          }

         SetTimerEx( "Register", 100, false, "d", playerid );
      }
   }
   else {
       if( !IsValidRoleplayName( ImeIgraca( playerid ) ) ) {
         SendClientMessage( playerid, SERVERBOJA, "{737BE1}MH : Dobili ste kick zbog krivo formatiranog imena!" );
         SendClientMessage( playerid, SERVERBOJA, "{737BE1}MH : Vase ime mora biti u formatu Ime_Prezime!" );
         SetTimerEx( "KickIgraca", 150, false, "d", playerid );
         return 1;
      }

       if( ServerInfo[ Registracija ] == false ) {

            SendClientMessage( playerid, SERVERBOJA, "{737BE1}MH : Trenutno na server se nije moguce registrovati." );
            SendClientMessage( playerid, SERVERBOJA, "{737BE1}MH : Napustite server.Hvala!." );
            SetTimerEx( "KickIgraca", 150, false, "d", playerid );
            return 1;
       }

       SetTimerEx( "Register", 100, false, "d", playerid );
   }

   proveriAlias( playerid );
   return true;
}[/pawn]
SPEED HACK (C++) https://github.com/nouddy/samp-speed-hack
Reliant GameMode (open.mp) https://github.com/nouddy/reliant-omp
SA:MP Landing Page https://github.com/nouddy/samp-landing-page


Kolko drama ima u 7 grama

BUMP

Neces vijerovati, odem na obicni ath, samo register tdove zamjenim i radi....
SPEED HACK (C++) https://github.com/nouddy/samp-speed-hack
Reliant GameMode (open.mp) https://github.com/nouddy/reliant-omp
SA:MP Landing Page https://github.com/nouddy/samp-landing-page


Kolko drama ima u 7 grama

[pawn]public OnPlayerConnect( playerid ) {

   SendClientMessage(playerid, -1, "1");
    ServerInfo[ BrojPosetaServeru ]++;
    SendClientMessage(playerid, -1, "2");
    SaveServerStats( );
    SendClientMessage(playerid, -1, "3");
   CheckRekord( );[/pawn]

Idi ovom metodom, ispred svake funkcije posalji poruku, mada mozda ti je bolje to uraditi umesto SendClientMessage u printf da bi lakse procitao u samp-server.exe

Onda vidis gde stane

Ili proveri prvo mape, desi se na connectu da crasha ako se dva puta ponovi isti RemoveBuildingForPlayer, sto mislim da je i ovde slucaj