Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: .G.h.0.s.T. poslato Februar 25, 2012, 18:35:16 POSLE PODNE

Naslov: [pomoc] PVar
Poruka od: .G.h.0.s.T. poslato Februar 25, 2012, 18:35:16 POSLE PODNE
Skripta koju koristim: LARP
Detaljan opis problema: zanima me kako staviti PlayerInfo[playerid][pAge] = check; u PVar....nalazi se na kraju codea....
Dio skripte:
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, "Vas datum rodjena? (Koristite dd/mm/gggg)");
    SendClientMessage(playerid, COLOR_LIGHTRED, "Primjer: 25/5/1994");
return 0;
}
new check = year - strvalEx(DateInfo[2]);
if(check == year)
{
    SendClientMessage(playerid, COLOR_LIGHTRED, "Vas datum rodjena? (Koristite dd/mm/gggg)");
    SendClientMessage(playerid, COLOR_LIGHTRED, "Primjer: 25/5/1994");
    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, imate %d godina.",PlayerInfo[playerid][pAge]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
RegistrationStep[playerid] = 3;
SendClientMessage(playerid, COLOR_LIGHTRED, "Odakle ste? (Upisite: Hrvatska, Bosna, Srbija ili Slovenija)");
return 0;
    }

Neke slike/video za lakse dobivanje pomoci(neobavezno): //