[POMOC] Server pada

Započeo 032.Marcus, Januar 27, 2013, 23:38:45 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Scripta: Raven's RolePlay
Problem: Editovao sam nesto kod Login sistema, mislim samo dialoge stavljao, pre je radilo ali ovog puta sam za godine dodao sa se u dialogu upisuje. Sada, kada se konektujem na server, i kliknem samo ono Accept terms ... server zakuje. Kako da resim?
Code: /

Pa daj taj deo sto si editovao bez toga tesko da ce neko da ti pomogne :)
Prodajem NL v3 mod sa bazom!
Ako si zainteresovan javi mi se na pm
U radu je i editovan mod (promenjena mesta bandi mafija, popravljeni bagovi i komande, etc.)

if(PlayerInfo[playerid][pTut] == 0)
    {
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
SafeSetPlayerInterior(playerid, 3);
SafeSetPlayerPos(playerid, 330.6825,163.6688,1014.1875);
SetPlayerFacingAngle(playerid, 280);
TogglePlayerControllable(playerid, 0);
RegistrationStep[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTRED, "Dobrodosli na Balkan-Express Server. Sada cete biti smesteni u Los Santo Imigracioni centar.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Zdravo ! Dobrodosao u Los Santo Imigracioni Centar. Pitacemo vas par pitanja");
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Kojeg ste pola?", "Musko \nZensko", "U redu", "Odustani");
PlayerInfo[playerid][pRegularCount] = 144000;
    SafeGivePlayerMoney(playerid,10000);
return 1;
    }



To je prvo editovano za dialog, a posle toga je ovo:

if(dialogid == 2) // Godiste
{
if(response)
{
new string[128];
new year, month,day;
getdate(year, month, day);
new DateInfo[3][20];
split(inputtext, DateInfo, '/');
if(year - strvalEx(DateInfo[2]) > 100 || strvalEx(DateInfo[2]) < 1 || strvalEx(DateInfo[2]) >= year)
{
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Koji je datum vaseg rodjenja?","Upisite tacan datum rodjenja (koristite dan/mesec/godina)\nPrimer:10/06/1996","OK","");
return 0;
}
new check = year - strvalEx(DateInfo[2]);
if(check == year)
{
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Koji je datum vaseg rodjenja?","Upisite tacan datum rodjenja (koristite dan/mesec/godina)\nPrimer:10/06/1996","OK","");
return 0;
}
if(strvalEx(DateInfo[1]) > month)
{
check -= 1;
}
else if(strvalEx(DateInfo[1]) == month && strval(DateInfo[0]) > day)
{
check -= 1;
}
PlayerInfo[playerid][pAge] = check;
ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST,"Odakle ste?","1\tSrbija\n2\tCrna Gora\n3\tBosna i Hercegovina\n4\tMakedonija\n5\tHrvatska\n6\tSlovenija","Izaberi","Otkazi"); return 0;
}
return 1;
}
if(dialogid == 3) // Drzava
{
    if(RegistrationStep[playerid] == 3)
    {
    if(response)
    {
    if(listitem == 0) // Srbija
    {
        PlayerInfo[playerid][pOrigin] = 1;
        TutTime[playerid] = 1;
        RegistrationStep[playerid] = 0;
  PlayerInfo[playerid][pTut] = 1;
PlayerInfo[playerid][pPos_x] = 1154.0857;
PlayerInfo[playerid][pPos_y] = -1770.9600;
PlayerInfo[playerid][pPos_z] = 16.5992;
MedicBill[playerid] = 0;
TutTime[playerid] = 1;
TogglePlayerControllable(playerid, 1);
SafeGivePlayerMoney(playerid, 500);
        return 0;
    }
    if(listitem == 1) // Crna Gora
    {
        PlayerInfo[playerid][pOrigin] = 2;
        RegistrationStep[playerid] = 0;
  PlayerInfo[playerid][pTut] = 1;
PlayerInfo[playerid][pPos_x] = 1154.0857;
PlayerInfo[playerid][pPos_y] = -1770.9600;
PlayerInfo[playerid][pPos_z] = 16.5992;
MedicBill[playerid] = 0;
TutTime[playerid] = 1;
TogglePlayerControllable(playerid, 1);
SafeGivePlayerMoney(playerid, 500);
        return 0;
    }
    if(listitem == 2) // Bosna i Hercegovina
    {
        PlayerInfo[playerid][pOrigin] = 3;
        RegistrationStep[playerid] = 0;
  PlayerInfo[playerid][pTut] = 1;
PlayerInfo[playerid][pPos_x] = 1154.0857;
PlayerInfo[playerid][pPos_y] = -1770.9600;
PlayerInfo[playerid][pPos_z] = 16.5992;
MedicBill[playerid] = 0;
TutTime[playerid] = 1;
TogglePlayerControllable(playerid, 1);
SafeGivePlayerMoney(playerid, 500);
        return 0;
    }
    if(listitem == 3) // Makedonija
    {
        PlayerInfo[playerid][pOrigin] = 4;
        RegistrationStep[playerid] = 0;
  PlayerInfo[playerid][pTut] = 1;
PlayerInfo[playerid][pPos_x] = 1154.0857;
PlayerInfo[playerid][pPos_y] = -1770.9600;
PlayerInfo[playerid][pPos_z] = 16.5992;
MedicBill[playerid] = 0;
TutTime[playerid] = 1;
TogglePlayerControllable(playerid, 1);
SafeGivePlayerMoney(playerid, 500);
        return 0;
}
if(listitem == 4) // Hrvatska
    {
        PlayerInfo[playerid][pOrigin] = 5;
        RegistrationStep[playerid] = 0;
  PlayerInfo[playerid][pTut] = 1;
PlayerInfo[playerid][pPos_x] = 1154.0857;
PlayerInfo[playerid][pPos_y] = -1770.9600;
PlayerInfo[playerid][pPos_z] = 16.5992;
MedicBill[playerid] = 0;
TutTime[playerid] = 1;
TogglePlayerControllable(playerid, 1);
SafeGivePlayerMoney(playerid, 500);
        return 0;
}
if(listitem == 5) // Slovenija
    {
        PlayerInfo[playerid][pOrigin] = 6;
        RegistrationStep[playerid] = 0;
  PlayerInfo[playerid][pTut] = 1;
PlayerInfo[playerid][pPos_x] = 1154.0857;
PlayerInfo[playerid][pPos_y] = -1770.9600;
PlayerInfo[playerid][pPos_z] = 16.5992;
MedicBill[playerid] = 0;
TutTime[playerid] = 1;
TogglePlayerControllable(playerid, 1);
SafeGivePlayerMoney(playerid, 500);
        return 0;
}
    }
}
return 1;
}