[[[HelppMeePleasee]]]
#1

So Here Is The Error.

Код:
C:\Documents and Settings\Chris\My Documents\HayZaticFreeRoam\filterscripts\HayZatRegistrationSystem.pwn(272) : error 030: compound statement not closed at the end of file (started at line 243)
Here Is The Code.

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if (dialogid == Register)
{
    new nombrejugador[MAX_PLAYER_NAME], archivo[256];
    if (!strlen(inputtext)) return ShowPlayerDialog(playerid, Register, DIALOG_STYLE_INPUT, "Register", "He writes your password", "Acept", "Cancel");
    if (!response) return ShowPlayerDialog(playerid, Register, DIALOG_STYLE_INPUT, "Register", "He writes your password:", "Acept", "Cancel");
    GetPlayerName(playerid, nombrejugador, sizeof(nombrejugador));
    format(archivo, sizeof(archivo), "/Users/%s.ini", nombrejugador);
    dini_Create(archivo);
    dini_Set(archivo, "User", nombrejugador);
    dini_Set(archivo, "Password", inputtext);
    ShowPlayerDialog(playerid, Logged, DIALOG_STYLE_INPUT, "Login", "He writes your password", "Acept", "Cancel");
}
if (dialogid == Logged)
{
    new nombrejugador[MAX_PLAYER_NAME], archivo[256], comprobante[256];
    if (!strlen(inputtext)) return ShowPlayerDialog(playerid, Logged, DIALOG_STYLE_INPUT, "Login", "He writes your password", "Acept", "Cancel");
    if (!response) return ShowPlayerDialog(playerid, Logged, DIALOG_STYLE_INPUT, "Login", "He writes your password", "Acept", "Cancel");
    GetPlayerName(playerid, nombrejugador, sizeof(nombrejugador));
    format(archivo, sizeof(archivo), "/Users/%s.ini", nombrejugador);
    format(comprobante, sizeof(comprobante), "%s", dini_Get(archivo, "Password"));
    if (!strcmp (inputtext, comprobante))
    {
        Login[playerid] = 1;
    }
    else
    {
        ShowPlayerDialog(playerid, Logged, DIALOG_STYLE_INPUT, "Login", "He writes your password", "Acept", "Cancel");
    }
}
I know its a return 1; but where does it go?
Reply


Messages In This Thread
[[[HelppMeePleasee]]] - by HayZatic - 07.07.2011, 00:58
AW: [[[HelppMeePleasee]]] - by Nero_3D - 07.07.2011, 01:02
Re: [[[HelppMeePleasee]]] - by Lorenc_ - 07.07.2011, 01:03

Forum Jump:


Users browsing this thread: 1 Guest(s)