[Pomoc] Oko sistema kuca

Započeo Bugi, Jun 27, 2013, 15:00:29 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: moja od 0
Detaljan opis problema: Koristim greedy house system i kad uncomment ovaj deo
PlayerInfo[playerid][pProveraSpawna] = 0; PlayerInfo[playerid][pPosedovanjeKuce] = -1; PlayerInfo[playerid][pRent] = -1; LociranjeKuce[playerid] = 0;
new igraci[50]; format(igraci, sizeof(igraci), PATH, ImeIgraca(playerid));
if(!fexist(igraci))
{
MiniRegis(playerid);
}
else
{
INI_ParseFile(igraci, "UcitavanjeIgraca", .bExtra = true, .extra = playerid);
SCM(playerid,-1,"Ucitavanje..."); SendClientMessage(playerid, -1, "{FFFF00}Molimo pricekajte...");
}

Poremeti se login sistem odnosno se sve poremeti stavi da umesto registera kad nemam account odmah pise login i to mi se zezne

Eto dal zna neko da pomogne, hvala unapred, i da jos jedno pitanje u vezi gredijevog hs kako da sredim ono da ne moram igracu da kucam /akljc id da resetjem kljuceve?
Dio skripte:/*PlayerInfo[playerid][pProveraSpawna] = 0; PlayerInfo[playerid][pPosedovanjeKuce] = -1; PlayerInfo[playerid][pRent] = -1; LociranjeKuce[playerid] = 0;
new igraci[50]; format(igraci, sizeof(igraci), PATH, ImeIgraca(playerid));
if(!fexist(igraci))
{
MiniRegis(playerid);
}
else
{
INI_ParseFile(igraci, "UcitavanjeIgraca", .bExtra = true, .extra = playerid);
SCM(playerid,-1,"Ucitavanje..."); SendClientMessage(playerid, -1, "{FFFF00}Molimo pricekajte...");
}*/
TextDrawShowForPlayer(playerid, lbt);
TextDrawShowForPlayer(playerid, lbb);
    if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN1, DIALOG_STYLE_INPUT,"{FFFF00}|LZ|{FFFFFF}Login","{FFFF00}__________________________________\n\n{FFFFFF}Dobrodosli na {FFFF00}LifeZone RolePlay\n\n{FFFF00}Account: Imate. \n\n{FFFFFF}Forum: {FFFF00}www.lz-rp.com \n\nUnesite sifru da se ulogujete!\n\n{FFFF00}__________________________________","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"{FFFFFF}Registracija - {FFFF00}Sifra","{FFFF00}__________________________________\n\n{FFFFFF}Dobrodosli na {FFFF00}LifeZone RolePlay{FFFFFF} \n\nAccount: {FFFF00}Nemate \n\n{FFFFFF}Forum: {FFFF00}lz-rp.com \n\n{FFFFFF}Unesite sifru da se registrujete.\n\n{FFFF00}__________________________________","Register","Quit");
}
Poslednja Izmena: Jun 27, 2013, 15:01:17 POSLE PODNE od |LZ| Bugi
RESPECT: Blaeks, Yui_Sang, Gagi, Kapetan Husein, Luksa, Slay, Denis_Lapi, Zoran(Dude)

Programski jezici koje koristim: C, C#, Visual Basic, HTML, CSS, PHP (tek ucim).


stock MiniRegis(playerid)
{
    new igraci[50];
format(igraci, sizeof(igraci), PATH, ImeIgraca(playerid));
new INI:File = INI_Open(igraci);
    INI_WriteInt(File,"PosedovanjeKuce",-1);
    INI_WriteInt(File,"ProveraSpawna",0);
    INI_WriteInt(File,"Rent",-1);
    INI_Close(File);
    SCM(playerid,-1,"Registracija uspesna!");
    return 1;
}


Evo ga miniregis pa ti mi kazes sad dal sam dobro spojio

PlayerInfo[playerid][pProveraSpawna] = 0; PlayerInfo[playerid][pPosedovanjeKuce] = -1; PlayerInfo[playerid][pRent] = -1; LociranjeKuce[playerid] = 0;
new igraci[50]; format(igraci, sizeof(igraci), PATH, ImeIgraca(playerid));
TextDrawShowForPlayer(playerid, lbt);
TextDrawShowForPlayer(playerid, lbb);
    if(fexist(UserPath(playerid)))
{
MiniRegis(playerid);
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN1, DIALOG_STYLE_INPUT,"{FFFF00}|LZ|{FFFFFF}Login","{FFFF00}__________________________________\n\n{FFFFFF}Dobrodosli na {FFFF00}LifeZone RolePlay\n\n{FFFF00}Account: Imate. \n\n{FFFFFF}Forum: {FFFF00}www.lz-rp.com \n\nUnesite sifru da se ulogujete!\n\n{FFFF00}__________________________________","Login","Quit");
}
else
{
INI_ParseFile(igraci, "UcitavanjeIgraca", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"{FFFFFF}Registracija - {FFFF00}Sifra","{FFFF00}__________________________________\n\n{FFFFFF}Dobrodosli na {FFFF00}LifeZone RolePlay{FFFFFF} \n\nAccount: {FFFF00}Nemate \n\n{FFFFFF}Forum: {FFFF00}lz-rp.com \n\n{FFFFFF}Unesite sifru da se registrujete.\n\n{FFFF00}__________________________________","Register","Quit");
}
RESPECT: Blaeks, Yui_Sang, Gagi, Kapetan Husein, Luksa, Slay, Denis_Lapi, Zoran(Dude)

Programski jezici koje koristim: C, C#, Visual Basic, HTML, CSS, PHP (tek ucim).


BUMPPPPPPPPPPPP
RESPECT: Blaeks, Yui_Sang, Gagi, Kapetan Husein, Luksa, Slay, Denis_Lapi, Zoran(Dude)

Programski jezici koje koristim: C, C#, Visual Basic, HTML, CSS, PHP (tek ucim).