1 igrac moze uci na server

Započeo F!N4LShare, Februar 28, 2019, 10:59:48 PRE PODNE

prethodna tema - sledeća tema

0 članova i 4 gostiju pregledaju ovu temu.

Problem(error/warning): Preko server.cfg sam namjestio maxplayers 300 posto imam kupljen server, i preko skripte sam podesio skoro sve sto je bilo MAX_PLAYERS na 300 medjutim ne izbacuje mi errore ni warninge ali mod je od pocetka imao taj bug, i dojadilo mi je ne mogu ga fixati niko nista ne zna nece niko da mi pomogne pa sam odlucio ovdje postaviti, samo 1 igrac moze uci na server a kada drugi pokusaju samo im stoji na loginu ne izlazi im reg/log nego im izbaci kao TD "OG" i samo tako stoji..
Dio skripte: Mod je Crazy Life
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): Nije potrebno
Slika/video ingame problema(obavezno ako je ingame problem): https://imgur.com/a/sujCPVs


[pawn]public OnPlayerConnect(playerid)
{
    SetPVarInt(playerid, "stvorioavozilo", 0);
   DeletePVar(playerid, "BoomboxObject"); DeletePVar(playerid, "BoomboxURL");
    DeletePVar(playerid, "bposX"); DeletePVar(playerid, "bposY"); DeletePVar(playerid, "bposZ"); DeletePVar(playerid, "bboxareaid");
    if(IsValidDynamicObject(GetPVarInt(playerid, "BoomboxObject"))) DestroyDynamicObject(GetPVarInt(playerid, "BoomboxObject"));
    new szFile[32], szLog[128], szIp[17], Year, Month, Day;
   getdate(Year, Month, Day);
   GetPlayerIp(playerid, szIp, charsmax(szIp));
   format(szFile, charsmax(szFile), "logoviipadresa/IP Log_%02d%02d%d.log", Day, Month, Year);
   format(szLog, charsmax(szLog), "Ime Igraca: %s | IP: %s", GetName(playerid), szIp);
   Log(szFile, szLog);
    new string[128];
    new ippp[24], szPlayerName[MAX_PLAYER_NAME];
   GetPlayerIp(playerid, ippp, 24);
    GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME-1);
    format(string, sizeof(string), "Igrac: %s | ID: %d |IP: %s | je konektovan. *****", szPlayerName, playerid,ippp );
    SendAdminMessage(0xFFFF80C8, string);[/pawn]

Ma daj citav onplayerconnect
i daj mi
nadji u scripit
#DEFINE MAX_PLAYERS ako nema dodaj negdje gdje ti je #DEFINE
#UNDEF MAX_PLAYERS
#DEFINE MAX_PLAYERS 300

Kume, ne pratis post dodao sam MAX_PLAYERS 300 ali opet ne radi, ili mozda nisam ubacio mod kako treba, sacu probat opet mod ubaciti pa javim ako bude radilo


*BUMP*
da li vi znate? @darkMagician @Joey.pwN  ili naravno kreator moda koji se ne javlja na PM @Akyz

Daj ceo OnPlayerConnect, ne mogu ovako videt.
• Website: www.vasic.dev
Web Development & Cyber Security

Nisam sad neki dobar "Skripter" ali mozes mi pojasniti cijeli? Imam jedan jedini "OnPlayerConnect" i ovo je sve sto imam... https://imgur.com/a/74tJBl7
jel to sve ovo ostalo ili? stvarno ne shvatam @Vasic

Jel mislite na ovo sve? [pawn]public OnPlayerConnect(playerid)
{
    SetPVarInt(playerid, "stvorioavozilo", 0);
   DeletePVar(playerid, "BoomboxObject"); DeletePVar(playerid, "BoomboxURL");
    DeletePVar(playerid, "bposX"); DeletePVar(playerid, "bposY"); DeletePVar(playerid, "bposZ"); DeletePVar(playerid, "bboxareaid");
    if(IsValidDynamicObject(GetPVarInt(playerid, "BoomboxObject"))) DestroyDynamicObject(GetPVarInt(playerid, "BoomboxObject"));
    new szFile[32], szLog[128], szIp[17], Year, Month, Day;
   getdate(Year, Month, Day);
   GetPlayerIp(playerid, szIp, charsmax(szIp));
   format(szFile, charsmax(szFile), "logoviipadresa/IP Log_%02d%02d%d.log", Day, Month, Year);
   format(szLog, charsmax(szLog), "Ime Igraca: %s | IP: %s", GetName(playerid), szIp);
   Log(szFile, szLog);
    new string[128];
    new ippp[24], szPlayerName[MAX_PLAYER_NAME];
   GetPlayerIp(playerid, ippp, 24);
    GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME-1);
    format(string, sizeof(string), "Igrac: %s | ID: %d |IP: %s | je konektovan. *****", szPlayerName, playerid,ippp );
    SendAdminMessage(0xFFFF80C8, string);
   /////////////////////////////////////////////////////////////////////////////////

   //Restartovanje igraca
      PlayerInfo[playerid][pAttach1] = -1;
   PlayerInfo[playerid][pAttach2] = -1;
   PlayerInfo[playerid][pAttach3] = -1;
   PlayerInfo[playerid][pAttach4] = -1;
   PlayerInfo[playerid][pAttach5] = -1;
   PlayerInfo[playerid][pAttach6] = -1;
   PlayerInfo[playerid][pAttach7] = -1;
   PlayerInfo[playerid][pAttach8] = -1;
   PlayerInfo[playerid][pAttach9] = -1;
      PlayerInfo[playerid][pBone1] = -1;
   PlayerInfo[playerid][pBone2] = -1;
   PlayerInfo[playerid][pBone3] = -1;
   PlayerInfo[playerid][pBone4] = -1;
   PlayerInfo[playerid][pBone5] = -1;
   PlayerInfo[playerid][pBone6] = -1;
   PlayerInfo[playerid][pBone7] = -1;
   PlayerInfo[playerid][pBone8] = -1;
   PlayerInfo[playerid][pBone9] = -1;
    PUAttach[playerid] = -1;
    UseAttach1[playerid] = 0;
    UseAttach2[playerid] = 0;
    UseAttach3[playerid] = 0;
    UseAttach4[playerid] = 0;
    UseAttach5[playerid] = 0;
    UseAttach6[playerid] = 0;
    UseAttach7[playerid] = 0;
    UseAttach8[playerid] = 0;
    UseAttach9[playerid] = 0;
    Spectate[ playerid ] = -1;
   SpecPos[ playerid ][ 0 ] = 0.0;
   SpecPos[ playerid ][ 1 ] = 0.0;
   SpecPos[ playerid ][ 2 ] = 0.0;
    //******************************************************************************
    //-------------------------------Zauzimanje-------------------------------------
   /////////////////////////////////////////////////////////////////////////////////////////
   RespawnVozila = 0;
   OcistiChat(playerid,16);
   AttachObjectRemove(playerid);
   ObrisiObjekte(playerid);
   KillTimer(GroveDrogaTimer[playerid]);
   BelaBojaigraca(playerid);
   KillTimer(VuciTimer[playerid]);
   KreirajTextDrawe(playerid);
   SetPlayerHealth(playerid, 100);
   KillTimer( zeton[playerid] );
   KillTimer(RentTimer[playerid]);
   // ovo
   CreatePlayerTextDraws( playerid ); // ovo
   InputPassword[ playerid ] = false; // ovo
   ChoseCountry[ playerid ] = false; // ovo
   InputAge[ playerid ] = false; // ovo
   InputMail[ playerid ] = false; // ovo
   RegSex[ playerid ] = 0; // ovo
   /////////////////////////////////////////////////////////////////////////////////////////
   //Dodaj u ostale define
    AntiIBV[playerid] = 0;
    AntiIBVCounter[playerid] = 0;
    AntiIBVActive[playerid] = 0;
   //GreedyAC[gCommandSpam] = 1;
   GreedyAC[gChatSpam] = 1;
   positionvw[playerid] = 0;
   gwarn[playerid] = 0;
   positionint[playerid] = 0;
   positionx[playerid] = 816.9719;
   positiony[playerid] = -1352.4008;
   positionz[playerid] = -0.5078;
   PlayerInfo[playerid][pDesertSkill] = 1000;
   PlayerInfo[playerid][pSilenSkill] = 1000;
   PlayerInfo[playerid][pPistSkill] = 1000;
   PlayerInfo[playerid][pShotgSkill] = 1000;
   PlayerInfo[playerid][pSawnSkill] = 1000;
   PlayerInfo[playerid][pUziSkill] = 1000;
   PlayerInfo[playerid][pSmgSkill] = 1000;
   PlayerInfo[playerid][pAkSkill] = 1000;
   PlayerInfo[playerid][pM4Skill] = 1000;
   PlayerInfo[playerid][pCombSkill] = 1000;
   PozvaoTaxi[playerid] = 0;
   Pismeni[playerid] = 0;
    Tazer[playerid] = 0;
    InfoMeni[playerid] = -1;
   AdminDuty[playerid] = 0;
   ACText[playerid] = 0;
   RCONPokusaji[playerid] = 0;
   GMDuty[playerid] = 0;
   ResetWarStatistics( playerid );
   SKDuty[playerid] = 0;
   SvercUlja[playerid] = 0;
   SvercDroge[playerid] = 0;
   KopacZlata[playerid] = 0;
   UlogovanProvera[playerid] = 0;
   Rentano[playerid] = 299;
   hPomoc[playerid] = 0;
   tDuznostVreme[playerid] = 0;
   NewNew[playerid] = 0;
   SvercOruzija[playerid] = 0;
    IgracKojimSaljes[playerid] = -1;
   LoginPokusaji[playerid] = 0;
   StavljeneLisice[playerid] = 0;
   KladionicaBroj[playerid] = 0;
    IgracTazovan[playerid] = 0;
   IgracOboren[playerid] = 0;
   PolicajacNaDuznosti[playerid] = 0;
   KaznuNapisao[playerid] = -1;
   hReport[playerid] = 0;
   CenaKazne[playerid] = 0;
   CreatingWAR[ playerid ] = -1;
   Kaucija[playerid] = 0;
   DobioPay[playerid] = 0;
   AvoziloMeni[playerid] = -1;
   Lociranje[playerid] = 0;
   SjemeDrogeGrove[playerid] = 0;
   zonaid[playerid] = -1;
    zonatime[playerid] = -1;
    dodajezonu[playerid] = -1;
   Poligon[playerid] = 0;
   KazneniPoeni[playerid] = 0;
   SvercMaterijala[playerid] = 0;
   UsaoFirma[playerid] = -1;
   Posadjena[playerid] = 0;
   IgracKrvari[playerid] = 0;
   MDC[playerid] = 0;
   Prisustvuje[playerid] = false;
   Naocare[playerid] = false;
   gPlayerAnimLibsPreloaded[playerid] = 0;
   gPlayerUsingLoopingAnim[playerid] = 0;
    BiraSkin[playerid] = false;
   KoristiDrogu[playerid] = 0;
   SmeceSakuplja[playerid] = 0;
   CistiUlice[playerid] = 0;
    Kockica[playerid] = 0;
   Marama[playerid] = 0; Muteg[playerid] = 0;
   Zavezan[playerid] = 0;
   IzmenaFirme[playerid] = -1;
   AdminVozilo[playerid] = -1;
   Prepreka1Kreirana[playerid] = false;
   Prepreka2Kreirana[playerid] = false;
   Prepreka3Kreirana[playerid] = false;
   KioskKupovina[playerid] = -1;
   Prepreka4Kreirana[playerid] = false;
   Vuceigraca[playerid] = -1;
   Vucen[playerid] = -1;
   vrataspawn[playerid] = false;
   DobioPay[playerid] = 0;
   BranjeDroge[playerid] = 0;
   PricauIntervju[playerid] = 255;
   IntervjuGotov[playerid] = 999;
   UsaoZgrada[playerid] = -1;
   PuniGorivo[playerid] = false;
   PrikazanTextDraw[playerid] = 0;
   BusLinija[playerid] = 0;
   KosenjeTrave[playerid] = 0;
   Ribari[playerid] = 0;
   PosaoGPS[playerid] = 0;
   PonudioPopravku[playerid] = -1;
   CenaPopravke[playerid] = 0;
   PonudioGorivo[playerid] = -1;
   UsingBelt[playerid] = 0;
   CenaGoriva[playerid] = 0;
   PosaoOprema[playerid] = 0;
   PostaRaznesi[playerid] = 0;
   PostaPreuzmi[playerid] = 0;
   GrobarLinija[playerid] = 0;
   TextDrawGangZone[playerid] = 0;
   TelefonRazgovor[playerid] = -1;
   Poziv[playerid] = -1;
   UpaljenTelefon[playerid] = 0;
   TelefonZvoni[playerid] = false;
   KupovinaAuta[playerid] = false;
   BunnyHop[playerid] = 0;
   MalterDovozi[playerid] = 0;
   PoravnaBagerom[playerid] = 0;
   LecenjeOd[playerid] = -1;
   CenaLecenja[playerid] = 0;
   Oranje[playerid] = 0;
   Vrsenje[playerid] = 0;
   Mleko[playerid] = 0;
   VozLinija[playerid] = 0;
   UzeoKutiju[playerid] = 0;
   TuraSF[playerid] = 0;
   TuraLV[playerid] = 0;
   LetSF[playerid] = 0;
   LetLV[playerid] = 0;
   ElektricarKvar[playerid] = 0;
   RadioAktiviran[playerid] = 0;
   CijenaProdaje[playerid] = 0;
   KomeProdaje[playerid] = -1;
   PonudioIgrac[playerid] = -1;
   DrvaPrevoz[playerid] = 0;
   UsaoAutoProdaja[playerid] = -1;
   UsaoMotorProdaja[playerid] = -1;
   KacigaStavljena[playerid] = 0;
   UsaoAvionProdaja[playerid] = -1;
   eData[playerid] = -1;
   BankomatMeni[playerid] = -1;
   UsaoPloviloProdaja[playerid] = -1;
   Zeton[playerid] = 0;
   KreiranStats[playerid] = 0;
   VatraEquip[playerid] = 0;
   ProposeOffer[playerid] = 999;
   MarryWitnessOffer[playerid] = 999;
    DivorceOffer[playerid] = 999;
   MarryWitness[playerid] = 999;
   MarriageCeremoney[playerid] = 0;
   ProposedTo[playerid] = 999;
   GotProposedBy[playerid] = 999;
   ClearMarriage(playerid);
   ///////////////////////////////////////////////////////////////////////////
   PlayerInfo[playerid][pZatvor] = 0;
   PlayerInfo[playerid][pJailed] = 0;
   PlayerInfo[playerid][pPozvan] = 0;
   PlayerInfo[playerid][pAdmin] = 0;
   PlayerInfo[playerid][pDvaV] = 0;
   PlayerInfo[playerid][pDiploma] = 0;
   PlayerInfo[playerid][pVabjuzer] = 0;
   PlayerInfo[playerid][pRPucitelj] = 0;
   PlayerInfo[playerid][pDidzej] = 0;
   PlayerInfo[playerid][pRPE] = 0;
   PlayerInfo[playerid][pPismeni] = 0;
   PlayerInfo[playerid][pVlidera] = 0;
   PlayerInfo[playerid][pImunitet] = 0;
   PlayerInfo[playerid][pVSpecTeam] = 0;
   PlayerInfo[playerid][pAbjuzer] = 0;
   PlayerInfo[playerid][pVlasnik] = 0;
   PlayerInfo[playerid][pPasos] = 0;
   PlayerInfo[playerid][pKzlato] = 0;
   PlayerInfo[playerid][pKopac] = 0;
   PlayerInfo[playerid][pWar] = 0;
   PlayerInfo[playerid][pNarucen] = 0;
   PlayerInfo[playerid][pGM] = 0;
   PlayerInfo[playerid][pPromoter] = 0;
   PlayerInfo[playerid][pVip] = 0;
   PlayerInfo[playerid][pRadi] = 0;
   PlayerInfo[playerid][pDonatorBodovi] = 0;
   PlayerInfo[playerid][pSmrti] = 0;
   PlayerInfo[playerid][pMuteg] = 0;
   PlayerInfo[playerid][pNargila] = 0;
    PlayerInfo[playerid][pLevel] = 0;
   PlayerInfo[playerid][pGodine] = 0;
   PlayerInfo[playerid][pDrzava] = 0;
   PlayerInfo[playerid][pSex] = 0;
    PlayerInfo[playerid][pTutorial] = 0;
   PlayerInfo[playerid][pLider] = 0;
   PlayerInfo[playerid][pClan] = 0;
   PlayerInfo[playerid][pRank] = 0;
    PlayerInfo[playerid][pWarn] = 0;
   PlayerInfo[playerid][pZatvor] = 0;
   PlayerInfo[playerid][pZatvorenVreme] = 0;
   PlayerInfo[playerid][pMutiranVreme] = 0;
   PlayerInfo[playerid][pExp] = 0;
    PlayerInfo[playerid][pTrazeniLevel] = 0;
   PlayerInfo[playerid][pUhapsenPuta] = 0;
   PlayerInfo[playerid][pDroga] = 0;
   PlayerInfo[playerid][pOrgUgovor] = 0;
    PlayerInfo[playerid][pMats] = 0;
   PlayerInfo[playerid][pPayDayPoeni] = 0;
   PlayerInfo[playerid][pSatiIgre] = 0;
   PlayerInfo[playerid][pIznosRate] = 0;
   PlayerInfo[playerid][pIznosKredita] = 0;
   PlayerInfo[playerid][pPreostaloZaOtplatu] = 0;
   PlayerInfo[playerid][pADozvola] = 0;
   PlayerInfo[playerid][pPosedovanjeAuta] = -1;
   PlayerInfo[playerid][pPosedovanjeAuta2] = -1;
   PlayerInfo[playerid][pKamionDozvola] = 0;
   PlayerInfo[playerid][pAvionDozvola] = 0;
   PlayerInfo[playerid][pMotorDozvola] = 0;
   PlayerInfo[playerid][pPosedovanjeMotora] = -1;
   PlayerInfo[playerid][pBrodDozvola] = 0;
   PlayerInfo[playerid][pGunDozvola] = 0;
   PlayerInfo[playerid][pBonus] = 0;
   PlayerInfo[playerid][pPosedovanjeFirme] = -1; PlayerInfo[playerid][pDzeparosVreme] = 0;
   PlayerInfo[playerid][pRobbankVreme] = 0;
   PlayerInfo[playerid][pKonopacVreme] = 0;
   PlayerInfo[playerid][pZauzima] = 0;
   PlayerInfo[playerid][pElektricarVreme] = 0; GaddafiTime[playerid] = 0;
   PlayerInfo[playerid][pBorbeniStil] = 4;
   PlayerInfo[playerid][pMobilni] = 0; PlayerInfo[playerid][pKartica] = 0; PlayerInfo[playerid][pImenik] = 0; PlayerInfo[playerid][pMobKredit] = 0;
   PlayerInfo[playerid][pCigare] = 0;
   PlayerInfo[playerid][pLottoNr] = 0; PlayerInfo[playerid][pZivot] = 0; PlayerInfo[playerid][pUpaljac] = 0; PlayerInfo[playerid][pKanap] = 0; PlayerInfo[playerid][pNaocare] = 0; PlayerInfo[playerid][pKaciga] = -1;
   PlayerInfo[playerid][pSat] = 0;
   PlayerInfo[playerid][pBorbeniStil] = 0; PlayerInfo[playerid][pPosao] = 0; PlayerInfo[playerid][pPosedovanjeStana] = -1;
   PlayerInfo[playerid][pProveraSpawna] = 0;
   PlayerInfo[playerid][pPosedovanjeKuce] = -1; PlayerInfo[playerid][pRent] = -1; PlayerInfo[playerid][pPosedovanjeVikendice] = -1;
   PlayerInfo[playerid][pPosedovanjeBicikla] = -1; PlayerInfo[playerid][pPosedovanjeAviona] = -1; PlayerInfo[playerid][pPosedovanjePlovila] = -1; HelpMessages[playerid] = 1; //Mrtav[playerid] = 0;
   strmid(PlayerInfo[playerid][pLastSeen], "Nikada", 0, strlen("Nikada"), 255);
    /////////////////////////////////////////////////////////////////////////
    strmid(ZlocinInfo[playerid][zPrijavio], "Nema", 0, strlen("Nema"), 255);
   strmid(ZlocinInfo[playerid][zPocinio], "Nema", 0, strlen("Nema"), 255);
   strmid(ZlocinInfo[playerid][zZlocin], "Nema", 0, strlen("Nema"), 255);
   SCM(playerid, -1, "{0A9DC9}FG:RPG {FFFFFF}Ocitavanje Servera, sacekajte malo...");
   if(Rentano[playerid] != 299) { RTC(Rentano[playerid]); Rentano[playerid] = 299; KillTimer(RentTimer[playerid]); }
   ///////////////////////////////////////////////////////////////////////////////////////////
   new banfile[100]; format(banfile,sizeof(banfile),BAN_FOLDER,GetName(playerid));
   new ip[64];
   new banipfile[100]; format(banipfile,sizeof(banipfile),BANIP_FOLDER,GetPlayerIp(playerid,ip,50));
   if(fexist(banfile))
   {
      StatusKonekta(playerid, 1);
      return 1;
   }
    /////////////////////////////////////////////////////////////////////////////////////////
   if(fexist(Korisnici(playerid)))
    {
        INI_ParseFile(Korisnici(playerid), "LoadUser", .bExtra = true, .extra = playerid);
       SetTimerEx( "Login", 100, false, "d", playerid ); // ovo
    }
    else
    {
      if(!ProveraRPImena(playerid))
      {
         StatusKonekta(playerid, 2);
         return 1;
      }
      //SpawnPlayer( playerid );
      LogRegTimer[playerid] = SetTimerEx( "LogReg", 1000, false, "d", playerid);
    }
    return 1;
}[/pawn]

Pa ne vidim ovde nikakav problem, daj mi registraciono polje, i to mesto gde ti je taj TD ili Gametext 'OG'
• Website: www.vasic.dev
Web Development & Cyber Security

AntiCheat mozda ? da li si ga proverio... Da li se logujes kao RCON ili ? Da li ti radi Registracija na serveru , da nije mozda iskljuceno Login/Register ?




Give Honor To The One Who Deserve It





Registracija na serveru radi normalno, Gametext "OG" nema sanse da nadjes jer je previse rijeci sa slovima "O i "G" znaci nema sanse da se ovo odradi jedino da @Akyz mi pomogne

Citat: Djozo1995 poslato Februar 28, 2019, 18:26:14 POSLE PODNE
Registracija na serveru radi normalno, Gametext "OG" nema sanse da nadjes jer je previse rijeci sa slovima "O i "G" znaci nema sanse da se ovo odradi jedino da @Akyz mi pomogne

Posalji mod ili Pwn i Pawno , PP ili ovde...




Give Honor To The One Who Deserve It





Bug ti je kod player text-drawova, ti si definisao npr "TvojTD[MAX_PLAYERS][2]" a prikazujes ga kao "TvojTD[2][MAX_PLAYERS]"
Games aren't created by writers rocking up to developers saying 'l have this great game story.' it's about establishing relationships and working hand in hand to create something wonderful.