[Pomoc] Login bug...

Započeo Rotcod, Septembar 09, 2010, 13:03:19 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Evo i ja malo da otvorim temu salim se naravno... Rec je o tome da kad pokusam da se loginujem ja ukucam sifru i to i kad stignem ono kucam Musko i chat i to radi kad stignem do datuma rikne i necita nijedan datum x) ... Molim vas pomoc ...  :-\

I kojom tehnikom da ti mi pomognemo, nisi dao ni kod ni primjer sto upisujes nista.


RESPECT 4 EVER: John, GLC,bAndzi, Nikola, Sop, Zoki, Bruno_Venuti, Mele, Luka P,ExtremePower,Wang(neki kineski frajer)

NAJBOLJI CITATI:
Citat: [GF]Alive poslato Jun 24, 2010, 18:20:19 POSLE PODNE
Paizte ljud mozda je KayLoger! ! !
MOJI RADOVI:
[FS]Trofeji

Budi malo ljubazniji sobzirom da si SMOD!


if(RegistrationStep[playerid] > 0)
{
    if(RegistrationStep[playerid] == 1)
    {
        new idx;
    tmp = strtok(text, idx);
    if((strcmp("male", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("male")))
{
    PlayerInfo[playerid][pSex] = 1;
    SendClientMessage(playerid, COLOR_YELLOW2, "Ok, so you are a Male.");
    SendClientMessage(playerid, COLOR_LIGHTRED, "What is your birthdate? (Use dd/mm/yyyy)");
    new maleskin;
    maleskin = random(sizeof(CivMalePeds));
    SetPlayerSkin(playerid, maleskin);
    PlayerInfo[playerid][pChar] = maleskin;
    RegistrationStep[playerid] = 2;
    return 0;
}
else if((strcmp("female", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("female")))
{
    PlayerInfo[playerid][pSex] = 2;
    SendClientMessage(playerid, COLOR_YELLOW2, "Ok, so you are a Female.");
    SendClientMessage(playerid, COLOR_LIGHTRED, "What is your birthdate? (Use dd/mm/yyyy)");
    new femaleskin;
    femaleskin = random(sizeof(CivFemalePeds));
    SetPlayerSkin(playerid, femaleskin);
    SetPlayerSkin(playerid, femaleskin);
    PlayerInfo[playerid][pChar] = femaleskin;
    RegistrationStep[playerid] = 2;
    return 0;
}
else
{
    SendClientMessage(playerid, COLOR_LIGHTRED, "Are you a Male or Female? (Type in what you are).");
}
return 0;
}
else if(RegistrationStep[playerid] == 2)
    {
        new year, month,day;
getdate(year, month, day);
        new DateInfo[3][20];
split(text, DateInfo, '/');
if(year - strvalEx(DateInfo[2]) > 100 || strvalEx(DateInfo[2]) < 1 || strvalEx(DateInfo[2]) >= year)
{
    SendClientMessage(playerid, COLOR_LIGHTRED, "What is your Birthdate? (Use dd/mm/yyyy)");
    return 0;
}
new check = year - strvalEx(DateInfo[2]);
if(check == year)
{
    SendClientMessage(playerid, COLOR_LIGHTRED, "What is your Birthdate? (Use dd/mm/yyyy)");
    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;
format(string, sizeof(string), "Ok, so you are %d year old.",PlayerInfo[playerid][pAge]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
RegistrationStep[playerid] = 3;
SendClientMessage(playerid, COLOR_LIGHTRED, "What is your Origin? (Type in: America, Europe, Asia or Africa)");
return 0;
    }
    else if(RegistrationStep[playerid] == 3)
    {
        new idx;
    tmp = strtok(text, idx);
    if((strcmp("america", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("america")))
{
    PlayerInfo[playerid][pOrigin] = 1;
    SendClientMessage(playerid, COLOR_YELLOW2, "Ok, so you are from the america.");
    SendClientMessage(playerid, COLOR_LIGHTRED, "Thank you for filling in all the information.");
    SendClientMessage(playerid, COLOR_LIGHTRED, "If you Wish to Proceed with a NEW Tutorial type /tutorial / You will have to Drive Around only..");
RegistrationStep[playerid] = 0;
PlayerInfo[playerid][pTut] = 1;
                PlayerInfo[playerid][pPos_x] = 1612.324;
PlayerInfo[playerid][pPos_y] = -2330.167;
PlayerInfo[playerid][pPos_z] = 13.5469;
MedicBill[playerid] = 0;
SetPlayerSpawn(playerid);
TogglePlayerControllable(playerid, 1);
SafeGivePlayerMoney(playerid, 500);
    return 0;
}
else if((strcmp("europe", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("europe")))
{
    PlayerInfo[playerid][pOrigin] = 2;
    SendClientMessage(playerid, COLOR_YELLOW2, "Ok, so you are from Europe.");
    SendClientMessage(playerid, COLOR_LIGHTRED, "Thank you for filling in all the information.");
    SendClientMessage(playerid, COLOR_LIGHTRED, "If you Wish to Proceed with a NEW Tutorial type /tutorial / You will have to Drive Around only..");
RegistrationStep[playerid] = 0;
PlayerInfo[playerid][pTut] = 1;
PlayerInfo[playerid][pPos_x] = 1612.324;
PlayerInfo[playerid][pPos_y] = -2330.167;
PlayerInfo[playerid][pPos_z] = 13.5469;
MedicBill[playerid] = 0;
SetPlayerSpawn(playerid);
TogglePlayerControllable(playerid, 1);
SafeGivePlayerMoney(playerid, 500);
    return 0;
}
else if((strcmp("asia", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("asia")))
{
    PlayerInfo[playerid][pOrigin] = 3;
    SendClientMessage(playerid, COLOR_YELLOW2, "Ok, so you are from Asia.");
    SendClientMessage(playerid, COLOR_LIGHTRED, "Thank you for filling in all the information.");
    SendClientMessage(playerid, COLOR_LIGHTRED, "If you Wish to Proceed with a NEW Tutorial type /tutorial / You will have to Drive Around only..");
RegistrationStep[playerid] = 0;
PlayerInfo[playerid][pTut] = 1;
PlayerInfo[playerid][pPos_x] = 1612.324;
PlayerInfo[playerid][pPos_y] = -2330.167;
PlayerInfo[playerid][pPos_z] = 13.5469;
MedicBill[playerid] = 0;
SetPlayerSpawn(playerid);
TogglePlayerControllable(playerid, 1);
SafeGivePlayerMoney(playerid, 500);
    return 0;
}
else if((strcmp("africa", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("africa")))
{
    PlayerInfo[playerid][pOrigin] = 4;
    SendClientMessage(playerid, COLOR_YELLOW2, "Ok, so you are from Africa.");
    SendClientMessage(playerid, COLOR_LIGHTRED, "Thank you for filling in all the information.");
    SendClientMessage(playerid, COLOR_LIGHTRED, "If you Wish to Proceed with a NEW Tutorial type /tutorial / You will have to Drive Around only..");
RegistrationStep[playerid] = 0;
PlayerInfo[playerid][pTut] = 1;
PlayerInfo[playerid][pPos_x] = 1612.324;
PlayerInfo[playerid][pPos_y] = -2330.167;
PlayerInfo[playerid][pPos_z] = 13.5469;
                MedicBill[playerid] = 0;
SetPlayerSpawn(playerid);
TogglePlayerControllable(playerid, 1);
SafeGivePlayerMoney(playerid, 500);
    return 0;
}
else
{
    SendClientMessage(playerid, COLOR_LIGHTRED, "What is your Origin? (Type in: America, Europe, Asia or Africa)");
}
return 0;
    }
return 0;
}


Eto to nije finalno ali za sad da popravim

Pa to ti je ko da dodes doktoru i kazes mu da te boli glava i nek ti kaze sto ti je. A sto se tice ovoga, jesi napisao datum u ovom obliku "DD/MM/YYYY" odnosno recimo "02/05/1987"


RESPECT 4 EVER: John, GLC,bAndzi, Nikola, Sop, Zoki, Bruno_Venuti, Mele, Luka P,ExtremePower,Wang(neki kineski frajer)

NAJBOLJI CITATI:
Citat: [GF]Alive poslato Jun 24, 2010, 18:20:19 POSLE PODNE
Paizte ljud mozda je KayLoger! ! !
MOJI RADOVI:
[FS]Trofeji