Pomoc oko dialoga

Započeo [CM] BrunoHP, Mart 27, 2010, 12:34:02 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Pozdrav svima, evo radim dialoge pa zelim napraviti kada pise ono jeste li musko ili zensko. Pa sam stavio kada se pise datum da se pojavi onaj dialog ko za login, ali izbaci neke errore i vidim problem da nisam stavio zarez kod stringa. A kada ga stavim, errora i warninga ko u prici. Evo taj dio di je taj dialog za datum rodenja:

if(dialogid == 5) // Spol
{
    if(RegistrationStep[playerid] == 1)
    {
    if(response)
    {
                new string[128];
if(listitem == 0) // Musko
    {
        PlayerInfo[playerid][pSex] = 1;
        format(string, sizeof(string)"Kada ste rodeni?\nMolimo da koristite / za razmake, npr.: 12/05/1990");
    ShowPlayerDialog(playerid,6,DIALOG_STYLE_INPUT,"U redu");
        RegistrationStep[playerid] = 2;
    }
    if(listitem == 1) // Zensko
    {
        PlayerInfo[playerid][pSex] = 2;
        format(string, sizeof(string)"Kada ste rodeni?\nMolimo da koristite / za razmake, npr.: 12/05/1990");
    ShowPlayerDialog(playerid,6,DIALOG_STYLE_INPUT,"U redu");
        RegistrationStep[playerid] = 2;
    }
    }
        }
return 1;
}
if(dialogid == 6) // Dob
{
        if(RegistrationStep[playerid] == 2)
    {
            new string[128];
new year, month,day;
getdate(year, month, day);
        new DateInfo[3][20];
split(text, DateInfo, '/');
if(year - strval(DateInfo[2]) > 9999 || strval(DateInfo[2]) < 1 || strval(DateInfo[2]) >= year)
{
    format(string, sizeof(string)"Kada ste rodeni?\nMolimo da koristite / za razmake, npr.: 12/05/1990");
ShowPlayerDialog(playerid,6,DIALOG_STYLE_INPUT,"U redu");
}
new check = year - strval(DateInfo[2]);
if(check == year)
{
    format(string, sizeof(string)"Kada ste rodeni?\nMolimo da koristite / za razmake, npr.: 12/05/1990");
ShowPlayerDialog(playerid,6,DIALOG_STYLE_INPUT,"U redu");
}
if(strval(DateInfo[1]) > month)
{
    check -= 1;
}
else if(strval(DateInfo[1]) == month && strval(DateInfo[0]) > day)
{
    check -= 1;
}
    PlayerInfo[playerid][pAge] = check;
    RegistrationStep[playerid] = 3;
    ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Odakle ste?", "Hrvatska \nSrbija \nKosovo \nCrna Gora \nSlovenija \nBosna i Hercegovina", "U redu"");
   
}
return 1;
}
if(dialogid == 7) // Drzava
{
    if(RegistrationStep[playerid] == 3)
    {
    if(response)
    {
    if(listitem == 0) // Hrvatska
    {
        PlayerInfo[playerid][pOrigin] = 1;
        SendClientMessage(playerid, COLOR_YELLOW2, "Ok, znaci iz Hrvatske ste.");
    RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    if(listitem == 1) // Srbija
    {
        PlayerInfo[playerid][pOrigin] = 2;
        SendClientMessage(playerid, COLOR_YELLOW2, "Ok, znaci iz Srbije ste.");
    RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    if(listitem == 2) // Kosovo
    {
        PlayerInfo[playerid][pOrigin] = 3;
        SendClientMessage(playerid, COLOR_YELLOW2, "Ok, znaci iz Kosova ste.");
    RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    if(listitem == 3) // Crna Gora
    {
        PlayerInfo[playerid][pOrigin] = 4;
        SendClientMessage(playerid, COLOR_YELLOW2, "Ok, znaci iz Crne Gore ste.");
    RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    if(listitem == 4) // Slovenija
    {
        PlayerInfo[playerid][pOrigin] = 5;
        SendClientMessage(playerid, COLOR_YELLOW2, "Ok, znaci iz Slovenije ste.");
    RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    if(listitem == 5) // BiH
    {
        PlayerInfo[playerid][pOrigin] = 6;
        SendClientMessage(playerid, COLOR_YELLOW2, "Ok, znaci iz Bosne i Hercegovine ste.");
    RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        return 0;
    }
    }
        }
return 1;
}


A kada nestavim zarez, evo erora:
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(2877) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9444) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9448) : error 001: expected token: ",", but found "-string-"
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9448) : warning 215: expression has no effect
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9448) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9448) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9448) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Kada stavim:
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(2877) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9444) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9449) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9449) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9449) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9456) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9456) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9456) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9467) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9471) : error 017: undefined symbol "text"
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9475) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9475) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9475) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9481) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9481) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9481) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9493) : error 037: invalid string (possibly non-terminated string)
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9493) : warning 215: expression has no effect
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9493) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9493) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Laptop\Desktop\CroMafia 3.a\gamemodes\cmr.pwn(9493) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.