Problem oko Admin Koda


Započeo Armoo, Novembar 28, 2018, 15:01:00 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Kad postavim ingame admin cod ne ucita mi se u skriptfiles a kad odem opet ingame ukucam onaj kod sto sam seto in game taj kod bude pravilan a u skriptfiles ne pise daj kod sto sam seto.
Dio skripte:Vas odgovor!!
Slika/video ingame problema(obavezno ako je ingame problem): link slike

Imao sam slican problem, bio je do kucnog servera jednostavno, probaj samp-server.exe pokrenuti preko run as administrator a prije toga izbriši tvoj acc iz scriptfiles pa napravi opet i vidi hoće li radit

Da li sacuvas igracu podatke posle postavljanja koda ?


@ShomY071
evo ti kod gdje sam sa cuvo pod stock SavePlayer
stock SavePlayer(playerid)
{
    if(UlogovanProvera[playerid] == 1)
	{
	    new INI:File = INI_Open(Korisnici(playerid));
	    INI_SetTag(File,"data");
		INI_WriteInt(File,"NovacDzep",PlayerInfo[playerid][pNovacDzep]);
	    INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
	    INI_WriteInt(File,"Adminpin",PlayerInfo[playerid][pAdminpin]);
	    INI_WriteInt(File,"Ubistava",PlayerInfo[playerid][pUbistava]);
	    INI_WriteInt(File,"Smrti",PlayerInfo[playerid][pSmrti]);
	    INI_WriteInt(File,"Level",PlayerInfo[playerid][pLevel]);
	    INI_WriteInt(File,"GameMaster",PlayerInfo[playerid][pGM]);
	    INI_WriteInt(File,"Skin",PlayerInfo[playerid][pSkin]);
	    INI_WriteInt(File,"Godine",PlayerInfo[playerid][pGodine]);
	    INI_WriteInt(File,"Drzava",PlayerInfo[playerid][pDrzava]);
	    INI_WriteInt(File,"Pol",PlayerInfo[playerid][pSex]);
	    INI_WriteInt(File,"Tutorial",PlayerInfo[playerid][pTutorial]);
	    INI_WriteString(File,"Email",PlayerInfo[playerid][pEmail]);
		INI_WriteString(File,"LastSeen",PlayerInfo[playerid][pLastSeen]);
	    INI_WriteInt(File,"Lider",PlayerInfo[playerid][pLider]);
	    INI_WriteInt(File,"Clan",PlayerInfo[playerid][pClan]);
	    INI_WriteInt(File,"Rank",PlayerInfo[playerid][pRank]);
	    INI_WriteInt(File,"Mutiran",PlayerInfo[playerid][pMutiran]);
	    INI_WriteInt(File,"NovacBanka",PlayerInfo[playerid][pNovacBanka]);
     	INI_WriteInt(File,"DisarmVreme",PlayerInfo[playerid][pDisarmVreme]);
      	INI_WriteInt(File,"Disarm",PlayerInfo[playerid][pDisarm]);
	    INI_WriteInt(File,"Warn",PlayerInfo[playerid][pWarn]);
	    INI_WriteInt(File,"BankovniRacun",PlayerInfo[playerid][pBankovniRacun]);
	    INI_WriteInt(File,"Zatvor",PlayerInfo[playerid][pZatvor]);
	    INI_WriteInt(File,"ZatvorenVreme",PlayerInfo[playerid][pZatvorenVreme]);
	    INI_WriteInt(File,"MutiranVreme",PlayerInfo[playerid][pMutiranVreme]);
	    INI_WriteInt(File,"Respekti",PlayerInfo[playerid][pExp]);
	    INI_WriteInt(File,"UhapsenPuta",PlayerInfo[playerid][pUhapsenPuta]);
	    INI_WriteInt(File,"Droga",PlayerInfo[playerid][pDroga]);
		INI_WriteString(File,"RankName",PlayerInfo[playerid][pRankName]);
	    INI_WriteInt(File,"Mats",PlayerInfo[playerid][pMats]);
	    INI_WriteInt(File,"PayDayPoeni",PlayerInfo[playerid][pPayDayPoeni]);
	    INI_WriteInt(File,"SatiIgre",PlayerInfo[playerid][pSatiIgre]);
	    INI_WriteInt(File,"IznosRate",PlayerInfo[playerid][pIznosRate]);
	    INI_WriteInt(File,"IznosKredita",PlayerInfo[playerid][pIznosKredita]);
	    INI_WriteInt(File,"PreostaloZaOtplatu",PlayerInfo[playerid][pPreostaloZaOtplatu]);
	    INI_WriteInt(File,"ADozvola",PlayerInfo[playerid][pADozvola]);
	    INI_WriteInt(File,"KamionDozvola",PlayerInfo[playerid][pKamionDozvola]);
	    INI_WriteInt(File,"AvionDozvola",PlayerInfo[playerid][pAvionDozvola]);
	    INI_WriteInt(File,"Prisluskivanje",PlayerInfo[playerid][pPrisluskivanje]);
	    INI_WriteInt(File,"Prislusk",PlayerInfo[playerid][pPrislusk]);
	    INI_WriteInt(File,"MotorDozvola",PlayerInfo[playerid][pMotorDozvola]);
	    INI_WriteInt(File,"BrodDozvola",PlayerInfo[playerid][pBrodDozvola]);
	    INI_WriteInt(File,"GunDozvola",PlayerInfo[playerid][pGunDozvola]);
	    INI_WriteInt(File,"PosedovanjeFirme",PlayerInfo[playerid][pPosedovanjeFirme]);
	    INI_WriteInt(File,"Mobilni",PlayerInfo[playerid][pMobilni]);
	    INI_WriteInt(File,"Kartica",PlayerInfo[playerid][pKartica]);
	    INI_WriteInt(File,"Imenik",PlayerInfo[playerid][pImenik]);
	    INI_WriteInt(File,"MobKredit",PlayerInfo[playerid][pMobKredit]);
	    INI_WriteInt(File,"Cigare",PlayerInfo[playerid][pCigare]);
	    INI_WriteInt(File,"Upaljac",PlayerInfo[playerid][pUpaljac]);
	    INI_WriteInt(File,"Kanap",PlayerInfo[playerid][pKanap]);
	    INI_WriteInt(File,"Naocare",PlayerInfo[playerid][pNaocare]);
        INI_WriteInt(File,"Povez",PlayerInfo[playerid][pPovez]);
	    INI_WriteInt(File,"Sat",PlayerInfo[playerid][pSat]);
	    INI_WriteInt(File,"BorbeniStil",PlayerInfo[playerid][pBorbeniStil]);
	    INI_WriteInt(File,"Posao",PlayerInfo[playerid][pPosao]);
	    INI_WriteInt(File,"Hrana",PlayerInfo[playerid][pHrana]);
		INI_WriteInt(File,"Radio",PlayerInfo[playerid][pRadio]);
	    INI_WriteInt(File,"PosedovanjeKuce",PlayerInfo[playerid][pPosedovanjeKuce]);
    	INI_WriteInt(File,"ProveraSpawna",PlayerInfo[playerid][pProveraSpawna]);
    	INI_WriteInt(File,"Rent",PlayerInfo[playerid][pRent]);
    	INI_WriteInt(File,"PosedovanjeStana",PlayerInfo[playerid][pPosedovanjeStana]);
    	INI_WriteInt(File,"PosedovanjeVikendice",PlayerInfo[playerid][pPosedovanjeVikendice]);
    	INI_WriteInt(File,"OrgUgovor",PlayerInfo[playerid][pOrgUgovor]);
    	INI_WriteInt(File,"PosaoUgovor",PlayerInfo[playerid][pPosaoUgovor]);
    	INI_WriteInt(File,"PosedovanjeAuta",PlayerInfo[playerid][pPosedovanjeAuta]);
    	INI_WriteInt(File,"PosedovanjeAuta2",PlayerInfo[playerid][pPosedovanjeAuta2]);
    	INI_WriteInt(File,"DzeparosVreme",PlayerInfo[playerid][pDzeparosVreme]);
    	INI_WriteInt(File,"PosedovanjeMotora",PlayerInfo[playerid][pPosedovanjeMotora]);
    	INI_WriteInt(File,"Kaciga",PlayerInfo[playerid][pKaciga]);
    	INI_WriteInt(File,"PosedovanjeBicikla",PlayerInfo[playerid][pPosedovanjeBicikla]);
    	INI_WriteInt(File,"PosedovanjeAviona", PlayerInfo[playerid][pPosedovanjeAviona]);
    	INI_WriteInt(File,"PosedovanjePlovila", PlayerInfo[playerid][pPosedovanjePlovila]);
    	INI_WriteInt(File,"Promoter", PlayerInfo[playerid][pPozicioner]);
    	INI_WriteInt(File,"Spec", PlayerInfo[playerid][pSpec]);
    	INI_WriteInt(File,"Vip", PlayerInfo[playerid][pVip]);
    	INI_WriteInt(File,"Goto", PlayerInfo[playerid][pGoto]);
    	INI_WriteInt(File,"Pomocnik", PlayerInfo[playerid][pPomocnik]);
    	INI_WriteInt(File,"VGM", PlayerInfo[playerid][pVgm]);
    	INI_WriteInt(File,"VST", PlayerInfo[playerid][pVst]);
    	INI_WriteInt(File,"Smith", PlayerInfo[playerid][pSmith]);
    	INI_WriteInt(File,"GPS", PlayerInfo[playerid][pGPS]);
    	INI_WriteInt(File,"DrvoSljiva", PlayerInfo[playerid][pDrvoSljiva]);
    	INI_WriteInt(File,"DrvoJabuka", PlayerInfo[playerid][pDrvoJabuka]);
    	INI_WriteInt(File,"DrvoKruska", PlayerInfo[playerid][pDrvoKruska]);
    	INI_WriteInt(File,"KljucImanja", PlayerInfo[playerid][pPosedovanjeImanja]);
    	INI_WriteInt(File,"Jabuka", PlayerInfo[playerid][pJabuka]);
    	INI_WriteInt(File,"Kruska", PlayerInfo[playerid][pKruska]);
    	INI_WriteInt(File,"Sljiva", PlayerInfo[playerid][pSljiva]);
    	INI_WriteInt(File,"Minus", PlayerInfo[playerid][pMinus]);
    	INI_WriteInt(File,"Plus", PlayerInfo[playerid][pPlus]);
    	INI_WriteInt(File,"Cmarenje", PlayerInfo[playerid][pCmarenje]);
    	INI_WriteInt(File,"Suky", PlayerInfo[playerid][pSuky]);
    	INI_WriteInt(File,"Tterma", PlayerInfo[playerid][pTerma]);
    	INI_WriteInt(File,"Fchat", PlayerInfo[playerid][pFcet]);
    	INI_WriteInt(File,"Spam", PlayerInfo[playerid][pSpamanje]);
    	INI_WriteInt(File,"Kingkonj", PlayerInfo[playerid][pKingkonj]);
        INI_WriteInt(File,"Radi", PlayerInfo[playerid][pRadi]);
    	INI_WriteInt(File,"RobBank",PlayerInfo[playerid][pRobbankVreme]);
    	INI_WriteInt(File,"KonopacVreme",PlayerInfo[playerid][pKonopacVreme]);
    	INI_WriteInt(File,"PovezVreme",PlayerInfo[playerid][pPovezVreme]);
    	INI_WriteInt(File,"ElektricarVremeDoKraja",PlayerInfo[playerid][pElektricarVreme]);
    	INI_WriteInt(File,"Narucen",PlayerInfo[playerid][pNarucen]);
    	INI_WriteInt(File,"Skripter",PlayerInfo[playerid][pSkripter]);
		INI_WriteInt(File,"DvaV",PlayerInfo[playerid][pDvaV]);
    	INI_WriteInt(File,"Mutirang",PlayerInfo[playerid][pMuteg]);
    	INI_WriteInt(File,"Mutiranl",PlayerInfo[playerid][pMutel]);
    	INI_WriteInt(File,"Diploma",PlayerInfo[playerid][pDiploma]);
    	INI_WriteInt(File,"Vabjuzera",PlayerInfo[playerid][pVabjuzer]);
		INI_WriteInt(File,"Vlidera",PlayerInfo[playerid][pVlidera]);
		INI_WriteInt(File,"Kantica",PlayerInfo[playerid][pKantica]);
    	INI_WriteInt(File,"abjuzera",PlayerInfo[playerid][pAbjuzer]);
    	INI_WriteInt(File,"Pasos",PlayerInfo[playerid][pPasos]);
    	INI_WriteInt(File,"Kzlato",PlayerInfo[playerid][pKzlato]);
    	INI_WriteInt(File,"Married",PlayerInfo[playerid][pMarried]);
    	INI_WriteInt(File,"MarriedTo",PlayerInfo[playerid][pMarriedTo]);
    	INI_WriteInt(File,"War",PlayerInfo[playerid][pWar]);
    	INI_WriteInt(File,"Bonus",PlayerInfo[playerid][pBonus]);
    	INI_WriteInt(File,"Imunitet",PlayerInfo[playerid][pImunitet]);
    	INI_WriteInt(File,"Imunitett",PlayerInfo[playerid][pImunitett]);
    	INI_WriteInt(File,"Zlato",PlayerInfo[playerid][pZlato]);
    	INI_WriteInt(File,"LotoBr1",PlayerInfo[playerid][pLottoNr]);
		INI_WriteInt(File,"Wanted",PlayerInfo[playerid][pTrazeniLevel]);
    	INI_WriteFloat(File,"PositionX", positionx[playerid]);
        INI_WriteFloat(File,"PositionY", positiony[playerid]);
		INI_WriteFloat(File,"PositionZ", positionz[playerid]);
		INI_WriteInt(File,"PositionInt",positionint[playerid]);
		INI_WriteInt(File,"PositionVw",positionvw[playerid]);
		INI_WriteInt(File, "PistolSkill",PlayerInfo[playerid][pPistSkill]);
	    INI_WriteInt(File, "SilencedSkill",PlayerInfo[playerid][pSilenSkill]);
        INI_WriteInt(File, "DesertSkill",PlayerInfo[playerid][pDesertSkill]);
	    INI_WriteInt(File, "ShotgunSkill",PlayerInfo[playerid][pShotgSkill]);
	    INI_WriteInt(File, "SawnoffSkill",PlayerInfo[playerid][pSawnSkill]);
	    INI_WriteInt(File, "CombatSkill",PlayerInfo[playerid][pCombSkill]);
	    INI_WriteInt(File, "UziSkill",PlayerInfo[playerid][pUziSkill]);
	    INI_WriteInt(File, "SMGSkill",PlayerInfo[playerid][pSmgSkill]);
	    INI_WriteInt(File, "AK47Skill",PlayerInfo[playerid][pAkSkill]);
	    INI_WriteInt(File, "M4Skill",PlayerInfo[playerid][pM4Skill]);
	    INI_WriteInt(File, "RPucitelj",PlayerInfo[playerid][pRPucitelj]);
	    INI_WriteInt(File, "Promoter",PlayerInfo[playerid][pPromoter]);
	    INI_WriteInt(File, "Dme",PlayerInfo[playerid][pDme]);
	    INI_WriteInt(File, "Joker",PlayerInfo[playerid][pJoker]);
	    INI_WriteInt(File, "Hacker",PlayerInfo[playerid][pHacker]);
	    INI_WriteInt(File, "Rpe",PlayerInfo[playerid][pRpe]);
	    INI_WriteInt(File, "Didzej",PlayerInfo[playerid][pDidzej]);
		INI_Close(File);
	}
	return 1;
}

Pa jel pozivas SavePlayer pri davanju koda...
daj ti meni cmd za setovanje koda

@ShomY071
evo
YCMD:promenipin(playerid, params[],help)
{
    #pragma unused help
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"AG: | "PPLAVA"Moras se ulogovati da bi koristio ovu komandu!");
	if(PlayerInfo[playerid][pAdmin] >= 6)
 	{
		new player, pin, string[256];
		if(sscanf(params, "ud", player, pin)) return SendClientMessage(playerid, -1, "AG: Pomoc | "SPLAVA"/promenipin [ID/Ime] [Brojke]");
		if(player == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, ""SIVA"[GRESKA] Igrac nije na serveru.");
		if(pin < 1 || pin > 99999) return SCM(playerid, -1, "AG: "PPLAVA"Ne mozes ici ispod 1,i ne mozes preko 99999 [5 cifri]!");
		PlayerInfo[player][pAdminpin] = pin;
		format(string, sizeof(string), ""ZELENA"A | "BELA"Vlasnik %s vam je promenuo AdminPin u %d !", GetName(playerid), pin);
		SendClientMessage(player, -1, string);
		format(string, sizeof(string), ""ZELENA"A | "BELA"Igracu %s ste promenili AdminPin u %d!", GetName(player), pin);
		SendClientMessage(playerid, -1, string);
		SavePlayer(player);
	}
	else
	{
	    SendClientMessage(playerid, -1, ""PPLAVA"AG: "SIVA"Samo Vlasnik!");
	}
	return 1;
}

pa vjerovatno koristiš sha256 hash funkciju za pin, kao što ima za pw
| Nick | Viserys Targaryen |