[POMOC] Korisnicki podatci se ne spremaju | UP:RP

Započeo _roodrd, Februar 15, 2014, 15:45:23 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: UP:RP (Greedy.amx)
Detaljan opis problema: Pa ovako usao sam pogledao mod i sve uredu, i kada sam izasao otisao u scriptfiles/korisnici/Ime_Prezime.ini nista nema prazan ? Jos fino pise da su se spremili ali nista
Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Poslednja Izmena: Februar 15, 2014, 17:06:32 POSLE PODNE od _roodrd

ocigledno ne zapisujes lepo varijable, ili mozda je nesto drugo problem posalji ovde, pa da vidimo

Citat: Blaeks poslato Februar 15, 2014, 19:31:13 POSLE PODNE
ocigledno ne zapisujes lepo varijable, ili mozda je nesto drugo problem posalji ovde, pa da vidimo
Sve je isto kao u modu.

enum pInfo
{
    pPass,
    pNovacDzep,
    pAdmin,
pGM,
    pUbistava,
    pSmrti,
    pLevel,
    pSkin,
pGodine,
pDrzava,
pSex,
pTutorial,
pEmail[128],
pLider,
pClan,
pRank,
pMutiran,
pNovacBanka,
pWarn,
pBankovniRacun,
pZatvor,
pZatvorenVreme,
pExp,
pPozvan,
pTrazeniLevel,
pUhapsenPuta,
pDroga,
pMats,
pPayDayPoeni,
pSatiIgre,
pIznosRate,
pIznosKredita,
pPreostaloZaOtplatu,
pADozvola,
pKamionDozvola,
pAvionDozvola,
pMotorDozvola,
pBrodDozvola,
pGunDozvola,
pPosedovanjeFirme,
pMobilni,
pImenik,
pMobKredit,
pCigare,
pUpaljac,
pKanap,
pNaocare,
pSat,
pBorbeniStil,
pPosao,
pHrana,
pPosedovanjeKuce,
pProveraSpawna,
pRent,
pPosedovanjeStana,
pPosedovanjeVikendice,
pOrgUgovor,
pPosaoUgovor,
pPosedovanjeAuta,
pDzeparosVreme,
pPosedovanjeMotora,
pKaciga,
pPosedovanjeBicikla,
pPosedovanjeAviona,
pPosedovanjePlovila
}
new PlayerInfo[MAX_PLAYERS][pInfo];
#define KORISNICI "Korisnici/%s.ini"




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,"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_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,"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,"Respekti",PlayerInfo[playerid][pExp]);
    INI_WriteInt(File,"UhapsenPuta",PlayerInfo[playerid][pUhapsenPuta]);
    INI_WriteInt(File,"Droga",PlayerInfo[playerid][pDroga]);
    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,"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,"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,"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,"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,"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_Close(File);
}
return 1;
}




stock Korisnici(playerid)
{
    new string[128];
    format(string,sizeof(string),KORISNICI,GetName(playerid));
    return string;
}






if(dialogid == REGLOG_PRAVILA)
{
    if(!response) return Kick(playerid);
if(response)
{
new regstring[512], regname[64]; GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),""BELA"________________________________________________\n\n"SPLAVA"Dobrodosao na Underpoint RolePlay\n\nVase Ime i Prezime: "CRVENA"%s\n"BELA"Vas korisnicki racun nije registrovan...\nUpisite vasu lozinku da bi ste se registrovali\n\nLozinka: "CRVENA"Min 6/Max 26 znakova\n\n"BELA"________________________________________________",regname);
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,""BELA"Registracija",regstring,"Registracija","Izlaz");
}
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
    if(dialogid == 3)
{
if(!response) return Kick(playerid);
if(response)
{
switch(listitem)
{
case 0:
{
SCM(playerid,-1,""CRVENA"Ok, "BELA"znaci "SPLAVA"Musko "BELA"ste.");
PlayerInfo[playerid][pSex] = 1;
ShowPlayerDialog(playerid, 4, 1, ""BELA"Koliko imate godina?", ""ZUTA"U prazno polje ispod upisi koliko imas godina\n\n"BELA"Godine upisi brojem\n"CRVENA"Nemojte ici ispod 7 i vise od 60!", "Dalje", "Odustani");
}
case 1:
{
SCM(playerid,-1,""CRVENA"Ok, "BELA"znaci "ZUTA"Zensko "BELA"ste.");
PlayerInfo[playerid][pSex] = 2;
ShowPlayerDialog(playerid, 4, 1, ""BELA"Koliko imate godina?", ""ZUTA"U prazno polje ispod upisi koliko imas godina\n\n"BELA"Godine upisi brojem\n"CRVENA"Nemojte ici ispod 7 i vise od 60!", "Dalje", "Odustani");
}
}
}
    }
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////
    if(dialogid == 5)
{
if(!response) return Kick(playerid);
if(response)
{
switch(listitem)
{
case 0:
{
PlayerInfo[playerid][pDrzava] = 1; //Srbija
new atext[20];
if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
new otext[20];
if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
new uspesnareg[400];
format(uspesnareg,sizeof(uspesnareg),""BELA"Uspesno ste popunili informacije\n\n"CRVENA"Vase Ime: "BELA"%s\n"CRVENA"Vase Prezime: "BELA"%s\n"CRVENA"Godine: "BELA"%d\n"CRVENA"Pol: "BELA"%s\n"CRVENA"Drzava: "BELA"%s\n\n"ZUTA"Email: "BELA"%s\n"ZUTA"Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,""CRVENA"Uspesna registracija",uspesnareg,"Dalje","Izadji");
SCM(playerid,-1,""SPLAVA"Ok, "BELA"znaci iz "CRVENA"Srbije "BELA"ste.");
}
case 1:
{
PlayerInfo[playerid][pDrzava] = 2; //Bosna
new atext[20];
if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
new otext[20];
if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
new uspesnareg[400];
format(uspesnareg,sizeof(uspesnareg),""BELA"Uspesno ste popunili informacije\n\n"CRVENA"Vase Ime: "BELA"%s\n"CRVENA"Vase Prezime: "BELA"%s\n"CRVENA"Godine: "BELA"%d\n"CRVENA"Pol: "BELA"%s\n"CRVENA"Drzava: "BELA"%s\n\n"ZUTA"Email: "BELA"%s\n"ZUTA"Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,""CRVENA"Uspesna registracija",uspesnareg,"Dalje","Izadji");
SCM(playerid,-1,""ZUTA"Ok, "BELA"znaci iz Bosne i Heregovine "ZUTA"ste.");
}
case 2:
{
PlayerInfo[playerid][pDrzava] = 3; //Republika Srpska
new atext[20];
if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
new otext[20];
if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
new uspesnareg[400];
format(uspesnareg,sizeof(uspesnareg),""BELA"Uspesno ste popunili informacije\n\n"CRVENA"Vase Ime: "BELA"%s\n"CRVENA"Vase Prezime: "BELA"%s\n"CRVENA"Godine: "BELA"%d\n"CRVENA"Pol: "BELA"%s\n"CRVENA"Drzava: "BELA"%s\n\n"ZUTA"Email: "BELA"%s\n"ZUTA"Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,""CRVENA"Uspesna registracija",uspesnareg,"Dalje","Izadji");
SCM(playerid,-1,""CRVENA"Ok, "BELA"znaci iz "SPLAVA"Republike Srpske "BELA"ste.");
}
case 3:
{
PlayerInfo[playerid][pDrzava] = 4; // Crna Gora
new atext[20];
if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
new otext[20];
if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
new uspesnareg[400];
format(uspesnareg,sizeof(uspesnareg),""BELA"Uspesno ste popunili informacije\n\n"CRVENA"Vase Ime: "BELA"%s\n"CRVENA"Vase Prezime: "BELA"%s\n"CRVENA"Godine: "BELA"%d\n"CRVENA"Pol: "BELA"%s\n"CRVENA"Drzava: "BELA"%s\n\n"ZUTA"Email: "BELA"%s\n"ZUTA"Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,""CRVENA"Uspesna registracija",uspesnareg,"Dalje","Izadji");
SCM(playerid,-1,""CRVENA"Ok, "BELA"znaci iz "SPLAVA"Crne Gore "BELA"ste.");
}
case 4:
{
PlayerInfo[playerid][pDrzava] = 5; //Hrvatska
new atext[20];
if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
new otext[20];
if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
new uspesnareg[400];
format(uspesnareg,sizeof(uspesnareg),""BELA"Uspesno ste popunili informacije\n\n"CRVENA"Vase Ime: "BELA"%s\n"CRVENA"Vase Prezime: "BELA"%s\n"CRVENA"Godine: "BELA"%d\n"CRVENA"Pol: "BELA"%s\n"CRVENA"Drzava: "BELA"%s\n\n"ZUTA"Email: "BELA"%s\n"ZUTA"Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,""CRVENA"Uspesna registracija",uspesnareg,"Dalje","Izadji");
SCM(playerid,-1,""CRVENA"Ok, "BELA"znaci iz "SPLAVA"Hrvatske "BELA"ste.");
}
case 5:
{
PlayerInfo[playerid][pDrzava] = 6; //Makedonija
new atext[20];
if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
new otext[20];
if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
new uspesnareg[400];
format(uspesnareg,sizeof(uspesnareg),""BELA"Uspesno ste popunili informacije\n\n"CRVENA"Vase Ime: "BELA"%s\n"CRVENA"Vase Prezime: "BELA"%s\n"CRVENA"Godine: "BELA"%d\n"CRVENA"Pol: "BELA"%s\n"CRVENA"Drzava: "BELA"%s\n\n"ZUTA"Email: "BELA"%s\n"ZUTA"Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,""CRVENA"Uspesna registracija",uspesnareg,"Dalje","Izadji");
SCM(playerid,-1,""CRVENA"Ok, "BELA"znaci iz "SPLAVA"Makedonije "BELA"ste.");
}
case 6:
{
PlayerInfo[playerid][pDrzava] = 7; //Slovenija
new atext[20];
if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
new otext[20];
if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
new uspesnareg[400];
format(uspesnareg,sizeof(uspesnareg),""BELA"Uspesno ste popunili informacije\n\n"CRVENA"Vase Ime: "BELA"%s\n"CRVENA"Vase Prezime: "BELA"%s\n"CRVENA"Godine: "BELA"%d\n"CRVENA"Pol: "BELA"%s\n"CRVENA"Drzava: "BELA"%s\n\n"ZUTA"Email: "BELA"%s\n"ZUTA"Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,""CRVENA"Uspesna registracija",uspesnareg,"Dalje","Izadji");
SCM(playerid,-1,""CRVENA"Ok, "BELA"znaci iz "SPLAVA"Slovenije "BELA"ste.");
}
case 7:
{
PlayerInfo[playerid][pDrzava] = 8; //Ostalo
new atext[20];
if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
new otext[20];
if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
new uspesnareg[400];
format(uspesnareg,sizeof(uspesnareg),""BELA"Uspesno ste popunili informacije\n\n"CRVENA"Vase Ime: "BELA"%s\n"CRVENA"Vase Prezime: "BELA"%s\n"CRVENA"Godine: "BELA"%d\n"CRVENA"Pol: "BELA"%s\n"CRVENA"Drzava: "BELA"%s\n\n"ZUTA"Email: "BELA"%s\n"ZUTA"Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,""CRVENA"Uspesna registracija",uspesnareg,"Dalje","Izadji");
SCM(playerid,-1,""CRVENA"Ok, "BELA"znaci iz "SPLAVA"neke druge drzave "BELA"ste.");
}
}
}
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if(dialogid == 4)
{
if(!response) return Kick(playerid);
if(response)
{
            new godine;
    godine = strval(inputtext);
            if(godine < 7 || godine > 60)
        {
SCM(playerid,-1,"[UP:RP]: "CRVENA"Nemozete ici ispod 7 i vise od 60 godina!");
ShowPlayerDialog(playerid, 4, 1, ""BELA"Koliko imate godina?", ""ZUTA"U prazno polje ispod upisi koliko imas godina\n\n"BELA"Godine upisi brojem\n"CRVENA"Nemojte ici ispod 7 i vise od 60!", "Dalje", "Odustani");
return 1;
}
new string[128];
PlayerInfo[playerid][pGodine] = strval(inputtext);
format(string,sizeof(string),""CRVENA"Ok, "BELA"znaci imate "ZUTA"%d "BELA"Godina.",PlayerInfo[playerid][pGodine]);
SCM(playerid,-1,string);
ShowPlayerDialog(playerid, 12, 1, ""BELA"Email", ""BELA"Unos email-a\n"ZUTA"U prazno polje ispod unesite vasu email adresu\n\n"BELA"Zamolili bih vas da unesete tacan email", "Dalje", "Odustani");
    }
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if(dialogid == 12)
{
    if (!response) return Kick(playerid);
if(response)
{
new emailp = strfind(inputtext, "@", true);
            if(emailp == -1)
        {
SCM(playerid,-1,"[UP:RP]: "CRVENA"Netacan email | Upisite tacnu email adresu!");
    ShowPlayerDialog(playerid, 12, 1, ""BELA"Email", ""BELA"Unos email-a\n"ZUTA"U prazno polje ispod unesite vasu email adresu\n\n"BELA"Zamolili bih vas da unesete tacan email", "Dalje", "Odustani");
return 1;
}
new emailp2 = strfind(inputtext, ".", true);
if(emailp2 == -1)
        {
        SCM(playerid,-1,"[UP:RP]: "CRVENA"Netacan email | Upisite tacnu email adresu!");
    ShowPlayerDialog(playerid, 12, 1, ""BELA"Email", ""BELA"Unos email-a\n"ZUTA"U prazno polje ispod unesite vasu email adresu\n\n"BELA"Zamolili bih vas da unesete tacan email", "Dalje", "Odustani");
return 1;
}
new string[128];
new INI:File = INI_Open(Korisnici(playerid));
            INI_SetTag(File,"data");
            INI_WriteString(File, "Email", inputtext);
format(string, sizeof(string), "%s", inputtext);
PlayerInfo[playerid][pEmail] = string;
INI_Close(File);
format(string,sizeof(string),""CRVENA"Ok, "BELA"znaci vas email je "ZUTA"%s.",inputtext);
SCM(playerid,-1,string);
ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, ""BELA"Odakle ste ?", ""SPLAVA"- "BELA"Srbija\n"SPLAVA"- "BELA"Bosna i Hercegovina\n"SPLAVA"- "BELA"Republika Srpska\n"SPLAVA"- "BELA"Crna Gora\n"SPLAVA"- "BELA"Hrvatska\n"SPLAVA"- "BELA"Makedonija\n"SPLAVA"- "BELA"Slovenija\n"SPLAVA"- "BELA"Ostalo", "Dalje", "Odustani");
    }
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if(dialogid == 22)
{
    if (!response) return Kick(playerid);
if(response)
{
    TextDrawShowForPlayer(playerid,TutorialSledi[0]); TextDrawShowForPlayer(playerid,TutorialSledi[1]);
    TextDrawShowForPlayer(playerid,TutorialSledi[2]); TextDrawShowForPlayer(playerid,TutorialSledi[3]);
    TextDrawShowForPlayer(playerid,TutorialSledi[4]); TextDrawShowForPlayer(playerid,TutorialSledi[5]);
    TextDrawShowForPlayer(playerid,TutorialSledi[6]); TutorialTimer[playerid] = SetTimerEx("Tutorial1",465, false, "i", playerid);
    }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
switch (dialogid)
    {
case DIALOG_REGISTER:
    {
if(!response) return Kick(playerid);
    if(response)
{
if(strlen(inputtext) < MIN_DUZINA_LOZINKE)
{
    new regstring[512], regname[64]; GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),""BELA"________________________________________________\n\n"SPLAVA"Dobrodosao na Underpoint RolePlay\n\nVase Ime i Prezime: "CRVENA"%s\n"BELA"Vas korisnicki racun nije registrovan...\nUpisite vasu lozinku da bi ste se registrovali\n\nLozinka: "CRVENA"Min 6/Max 26 znakova\n\n"BELA"________________________________________________",regname);
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,""BELA"Registracija",regstring,"Registracija","Izlaz");
SCM(playerid,-1,"[UP:RP] "CRVENA"Lozinka mora imati minimum 6 znakova, a maximum 26 znakova!");
}
else if(strlen(inputtext) > MAX_DUZINA_LOZINKE)
{
    new regstring[512], regname[64]; GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),""BELA"________________________________________________\n\n"SPLAVA"Dobrodosao na Underpoint RolePlay\n\nVase Ime i Prezime: "CRVENA"%s\n"BELA"Vas korisnicki racun nije registrovan...\nUpisite vasu lozinku da bi ste se registrovali\n\nLozinka: "CRVENA"Min 6/Max 26 znakova\n\n"BELA"________________________________________________",regname);
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,""BELA"Registracija",regstring,"Registracija","Izlaz");
SCM(playerid,-1,"[UP:RP] "CRVENA"Lozinka mora imati minimum 6 znakova, a maximum 26 znakova!");
}
else if(strlen(inputtext) >= MIN_DUZINA_LOZINKE && strlen(inputtext) <= MAX_DUZINA_LOZINKE)
{
new INI:File = INI_Open(Korisnici(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"NovacDzep",0);
    INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"Ubistava",0);
INI_WriteInt(File,"Smrti",0);
    INI_WriteInt(File,"Level",1);
INI_WriteInt(File,"GameMaster",0);
INI_WriteInt(File,"Skin",0);
    INI_WriteInt(File,"Godine",0);
INI_WriteInt(File,"Drzava",0);
INI_WriteInt(File,"Pol",0);
    INI_WriteInt(File,"Tutorial",0);
INI_WriteInt(File,"Email",0);
INI_WriteInt(File,"Lider",0);
    INI_WriteInt(File,"Clan",0);
INI_WriteInt(File,"Rank",0);
INI_WriteInt(File,"Mutiran",0);
    INI_WriteInt(File,"NovacBanka",0);
INI_WriteInt(File,"Warn",0);
    INI_WriteInt(File,"BankovniRacun",0);
INI_WriteInt(File,"Zatvor",0);
INI_WriteInt(File,"ZatvorenVreme",0);
    INI_WriteInt(File,"Respekti",0);
INI_WriteInt(File,"UhapsenPuta",0);
INI_WriteInt(File,"Droga",0);
    INI_WriteInt(File,"Mats",0);
INI_WriteInt(File,"PayDayPoeni",0);
INI_WriteInt(File,"SatiIgre",0);
    INI_WriteInt(File,"IznosRate",0);
INI_WriteInt(File,"IznosKredita",0);
INI_WriteInt(File,"PreostaloZaOtplatu",0);
    INI_WriteInt(File,"ADozvola",0);
INI_WriteInt(File,"KamionDozvola",0);
INI_WriteInt(File,"AvionDozvola",0);
    INI_WriteInt(File,"MotorDozvola",0);
INI_WriteInt(File,"BrodDozvola",0);
INI_WriteInt(File,"GunDozvola",0);
    INI_WriteInt(File,"PosedovanjeFirme",-1);
INI_WriteInt(File,"Mobilni",0);
INI_WriteInt(File,"Imenik",0);
    INI_WriteInt(File,"MobKredit",0);
INI_WriteInt(File,"Cigare",0);
INI_WriteInt(File,"Upaljac",0);
    INI_WriteInt(File,"Kanap",0);
INI_WriteInt(File,"Naocare",0);
INI_WriteInt(File,"Sat",0);
INI_WriteInt(File,"BorbeniStil",4);
INI_WriteInt(File,"Posao",0);
INI_WriteInt(File,"Hrana",0);
INI_WriteInt(File,"PosedovanjeKuce",-1);
    INI_WriteInt(File,"ProveraSpawna",0);
    INI_WriteInt(File,"Rent",-1);
    INI_WriteInt(File,"PosedovanjeStana",-1);
    INI_WriteInt(File,"PosedovanjeVikendice",-1);
    INI_WriteInt(File,"OrgUgovor",0);
    INI_WriteInt(File,"PosaoUgovor",0);
                    INI_WriteInt(File,"PosedovanjeAuta",-1);
                    INI_WriteInt(File,"DzeparosVreme",0);
INI_WriteInt(File,"PosedovanjeMotora",-1);
INI_WriteInt(File,"Kaciga",-1);
INI_WriteInt(File,"PosedovanjeBicikla",-1);
INI_WriteInt(File,"PosedovanjeAviona",-1);
INI_WriteInt(File,"PosedovanjePlovila",-1);
INI_Close(File);
PlayerInfo[playerid][pNovacBanka] = 0; PlayerInfo[playerid][pNovacDzep] = 2000; GivePlayerMoney(playerid, PlayerInfo[playerid][pNovacDzep]);
new string[128];
format(string,sizeof(string),""CRVENA"[UP:RP]: "BELA"Uspesno ste se registrovali | Vasa lozinka je: "SPLAVA"%s",inputtext);
SCM(playerid,-1,string); PlayerInfo[playerid][pLevel] = 1;
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, ""BELA"Dali ste musko ili zensko?", ""SPLAVA"- "BELA"Musko\n"SPLAVA"- "BELA"Zensko", "Dalje", "Odustani");
}
    }
    }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
case DIALOG_LOGIN:
    {
    if(!response) return Kick(playerid);
    if(response)
    {
if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
    {
    INI_ParseFile(Korisnici(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    new rand = random(sizeof(RandomSpawn2));
SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], RandomSpawn2[rand][0], RandomSpawn2[rand][1], RandomSpawn2[rand][2], RandomSpawn2[rand][3], 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid); GivePlayerMoney(playerid, PlayerInfo[playerid][pNovacDzep]);
SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pBorbeniStil]);
SetCameraBehindPlayer(playerid);
    UlogovanProvera[playerid] = 1;
    TextDrawHideForPlayer(playerid, LoginTextdraw[0]);
TextDrawHideForPlayer(playerid, LoginTextdraw[1]); TextDrawHideForPlayer(playerid, LoginTextdraw[2]);
    OcistiChat(playerid, 10);
new string[256],iskustvo;
iskustvo = (PlayerInfo[playerid][pLevel] * 2) + 2;
format(string,sizeof(string),""SPLAVA"Dobrodosao "BELA"%s "SPLAVA"na Underpoint RolePlay.",GetName(playerid));
SCM(playerid,-1,string);
format(string,sizeof(string),""SPLAVA"[INFO]: "BELA"Trenutni Level: %d | Respekti: %d/%d | Sati Igre: %d.",PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pExp],iskustvo,PlayerInfo[playerid][pSatiIgre]);
SCM(playerid,-1,string);
if(PlayerInfo[playerid][pTutorial] == 0)
{
    SCM(playerid,-1,"[UP:RP]: "ZUTA"Niste zavrsili registraciju ni sagledali tutorail pa ste vraceni na ponovnu registraciju!");
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, ""BELA"Dali ste musko ili zensko?", ""SPLAVA"- "BELA"Musko\n"SPLAVA"- "BELA"Zensko", "Dalje", "Odustani");
    SetPlayerCameraPos(playerid, 1657.39, -1856.75, 45.71); SetPlayerCameraLookAt(playerid, 1661.96, -1857.56, 43.85);
    SetPlayerInterior(playerid, 0); TogglePlayerControllable(playerid, 0); SetPlayerPos(playerid, 1693.3690,-1867.5784,13.5412);
    SetPlayerFacingAngle(playerid, 139.7829); SetPlayerVirtualWorld(playerid, 5446);
}
    }
    else
    {
    new loginstring[512],loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname));
format(loginstring,sizeof(loginstring),""BELA"________________________________________________\n\n"SPLAVA"Dobrodosao na Underpoint RolePlay\n\n"BELA"Vas Ime i Prezime: "SPLAVA"%s\n"BELA"Vas korisnicki racun je registrovan na serveru\nUnesite vas tacan password, imate "CRVENA"4 "BELA"pokusaja...\n\n"BELA"Ukoliko pogresite "CRVENA"4 "BELA"puta pass bicete banovani!\n"BELA"________________________________________________",loginname);
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login",loginstring,"Login","Izlaz");
    LoginPokusaji[playerid] += 1;
    SCMF(playerid,-1,"[UP:RP] "CRVENA"Pogresna lozinka | Preostalo Pokusaja: %d/4!",LoginPokusaji[playerid]);
    if(LoginPokusaji[playerid] == 4) { StatusKonekta(playerid, 4); }
}
return 1;
    }
    }
    }
    return 1;
}
///////////////////////////////////////////////////////////////////////////



Jos nesto ?